aliasrc (1494B)
1 #!/usr/bin/env sh 2 alias ka="killall" \ 3 mkd="mkdir -pv" \ 4 mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \ 5 calcurse="calcurse -D ~/.config/calcurse" \ 6 magit="nvim -c MagitOnly" \ 7 p="sudo pacman" \ 8 SS="sudo systemctl" \ 9 g="git" \ 10 gp="git push" \ 11 gP="git push origin master" \ 12 gM="git add . && git commit -m 'memex update' && git push origin master" \ 13 gS="git add . && git commit -m 'site update' && git push origin master" \ 14 trem="transmission-remote" \ 15 e="$EDITOR" \ 16 v="$EDITOR" \ 17 x="sxiv -ft *" \ 18 sdn="sudo shutdown -h now" \ 19 gua="git remote | xargs -L1 git push --all" \ 20 ls="exa --group-directories-first" \ 21 grep="grep --color=auto" \ 22 diff="diff --color=auto" \ 23 ccat="highlight --out-format=ansi" \ 24 yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'" \ 25 yta="yt -x -f bestaudio/best --audio-format mp3" \ 26 ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \ 27 upc="sudo pacman -Syu" \ 28 lsp="pacman -Qett --color=always | less" \ 29 ffmpeg="ffmpeg -hide_banner" \ 30 abook="abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook" \ 31 mbsync="mbsync -c ${XDG_CONFIG_HOME:-$HOME/.config}/isync/mbsyncrc" \ 32 tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf" \ 33 wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts" 34 35 36 37 38 command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. 39 40 vf() { fzf | xargs -r -I % $EDITOR % ;}