summaryrefslogtreecommitdiffstats
path: root/.config/aliasrc
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-19 13:13:05 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-02-19 13:13:05 -0500
commit7b74f9d8c2c658399596ac0babbd4fe1c1d10506 (patch)
tree46fea810b0d498c8f2ed22d449a174c44806ba9b /.config/aliasrc
parentc80905abce76f3b119603a99297710fcd19ead1e (diff)
downloadeibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.tar.gz
eibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.tar.zst
eibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.zip
bm* files, shortcuts and alias to .config
Diffstat (limited to '.config/aliasrc')
-rw-r--r--.config/aliasrc32
1 files changed, 32 insertions, 0 deletions
diff --git a/.config/aliasrc b/.config/aliasrc
new file mode 100644
index 0000000..022b067
--- /dev/null
+++ b/.config/aliasrc
@@ -0,0 +1,32 @@
+#!/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 ~/.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.
+
+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 % ;}