summaryrefslogtreecommitdiffstats
path: root/.aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.aliasrc')
-rw-r--r--.aliasrc31
1 files changed, 31 insertions, 0 deletions
diff --git a/.aliasrc b/.aliasrc
new file mode 100644
index 0000000..1fb1c8d
--- /dev/null
+++ b/.aliasrc
@@ -0,0 +1,31 @@
+#!/bin/sh
+alias ka="killall" \
+ mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
+ magit="nvim -c Magit" \
+ p="sudo pacman" \
+ SS="sudo systemctl" \
+ f="vifm" \
+ 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 ~/.shortcuts" \
+ upc="sudo pacman -Syu; pkill -RTMIN+8 i3blocks" \
+ lsp="pacman -Qett --color=always | less"
+
+command -v nvim >/dev/null && alias vimdiff="nvim -d" # Use neovim for vimdiff if present.
+
+shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;}
+se() { du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;}
+sv() { vcopy "$(du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf)" ;}
+vf() { fzf | xargs -r -I % $EDITOR % ;}