1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
dotfiles/.config/aliasrc

134 lines
2.7 KiB
Plaintext
Raw Normal View History

2019-10-03 18:07:08 +02:00
#!/bin/sh
# bash
alias ":wq"="exit"
alias ":q"="exit"
# cd
alias ".."="cd .."
alias "..."="cd ../.."
alias "...."="cd ../../.."
alias "....."="cd ../../../.."
2020-11-07 01:21:34 +01:00
alias "dockervol"="cd /var/lib/docker/volumes"
2019-10-03 18:07:08 +02:00
# cp
alias cp="cp -i"
# clear
alias c="clear"
# config
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
2022-08-13 03:26:41 +02:00
# cuebreakpoints
flacsplit() { cuebreakpoints $2 | shnsplit $1 -o flac }
# diff
alias diff="diff --color=auto"
2023-01-10 16:47:31 +01:00
# dragon-drop
alias drag="dragon-drop"
alias drop="dragon-drop"
2019-10-03 18:07:08 +02:00
# fzf
2019-12-02 18:21:42 +01:00
src() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;}
srd() { find ~/nextCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;}
2019-10-03 18:07:08 +02:00
yaya() { yay -Slq | fzf --reverse --prompt="yay install > " -q "$1" -m --preview 'yay -Si {1}'| xargs -ro yay -S }
yayr() { yay -Qq | fzf --reverse --prompt="yay remove > " -q "$1" -m --preview 'yay -Qi {1}' | xargs -ro yay -Rns }
2022-08-07 17:27:53 +02:00
# ghb
alias vidcoder="ghb"
2020-05-30 20:02:50 +02:00
# git
alias ga="git add"
alias grm="git rm"
alias gc="git commit"
alias gp="git push"
2019-10-03 18:07:08 +02:00
# grep
alias grep="grep --color=auto"
2020-05-10 00:11:24 +02:00
# haste
2020-05-18 02:03:19 +02:00
haste() {
a=$(cat);
curl -X POST -s -d "$a" https://paste.tiyn.eu/documents | awk -F '"' '{print "https://paste.tiyn.eu/"$4}';
}
2020-05-10 00:11:24 +02:00
2020-04-03 01:33:51 +02:00
#khal
alias calendar="khal interactive"
2020-04-03 01:33:51 +02:00
# khard
alias contacts="khard"
# kolourpaint
alias paint="kolourpaint"
2019-10-03 18:07:08 +02:00
# ls(d)
2022-09-07 01:13:11 +02:00
alias l="exa"
alias la="exa -la"
alias ll="exa -l"
alias tree="exa --tree"
2019-10-03 18:07:08 +02:00
# mkdir
alias mkdir="mkdir -p"
2020-12-28 18:28:29 +01:00
# multitail
alias mon="multitail -CS irc -f"
# mutt
alias mutt="neomutt"
alias upmutt="mbsync -a && neomutt"
2019-10-03 18:07:08 +02:00
# mv
alias mv="mv -i"
# octave
alias octave="octave --persist"
2019-10-03 18:07:08 +02:00
# pacman
alias pac="sudo pacman"
# ping
alias ping="ping -c 5"
# rm
alias rm="rm -i"
2019-10-03 18:07:08 +02:00
2022-08-07 14:24:23 +02:00
# rsync
2022-08-07 15:03:11 +02:00
alias rsync="rsync -vh --progress --partial"
2022-08-07 14:24:23 +02:00
2019-10-03 18:07:08 +02:00
# root/sudo
alias su="sudo -i"
2020-05-30 20:02:50 +02:00
alias sudo="sudo "
2019-10-03 18:07:08 +02:00
#sc-im
2019-12-02 23:49:21 +01:00
alias sc="sc-im"
2019-11-01 11:15:16 +01:00
# script
alias scriptclear="cat typescript | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' | col -b > typescript-processed"
# tmux
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
2019-10-03 18:07:08 +02:00
# nvim
alias svim="sudo nvim"
alias svi="sudo nvim"
2019-10-03 18:07:08 +02:00
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
2019-10-03 18:07:08 +02:00
# weather
alias weather="curl wttr.in"
2020-11-07 01:21:34 +01:00
# wget
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
2020-11-07 01:21:34 +01:00
# yay
alias yay="yay --sudoloop --noredownload --norebuild"
2020-11-07 01:21:34 +01:00
# youtube-dl
alias yta="youtube-dl -f 'bestaudio[ext=m4a]'"
2021-09-12 22:42:55 +02:00
alias ytv="youtube-dl -f 'bestvide[ext=mp4]+bestaudio[ext=m4a]'"
alias yta2c="youtube-dl --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestaudio/best'"
alias ytv2c="youtube-dl --external-downloader aria2c --external-downloader-args '-j 16 -x 16 -s 16 -k 2M' -f 'bestvideo[height>=720]+bestaudio/best'"