voidrice/.config/aliasrc
2019-03-30 00:35:51 -04:00

31 lines
1,004 B
Bash

#!/bin/sh
alias ka="killall" \
mkd="mkdir -pv" \
mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
calcurse="calcurse -D ~/.config/calcurse" \
magit="nvim -c MagitOnly" \
p="sudo pacman" \
SS="sudo systemctl" \
f="$FILE" \
g="git" \
trem="transmission-remote" \
e="$EDITOR" \
v="$EDITOR" \
x="sxiv -ft *" \
sdn="sudo shutdown -h now" \
gua="git remote | xargs -L1 git push --all" \
ls="ls -hN --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
ccat="highlight --out-format=ansi" \
yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'" \
yta="yt -x -f bestaudio/best" \
YT="youtube-viewer" \
ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \
upc="sudo pacman -Syu; pkill -RTMIN+8 i3blocks" \
lsp="pacman -Qett --color=always | less" \
ffmpeg="ffmpeg -hide_banner"
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
vf() { fzf | xargs -r -I % $EDITOR % ;}