diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-02-19 13:13:05 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-02-19 13:13:05 -0500 |
| commit | 7b74f9d8c2c658399596ac0babbd4fe1c1d10506 (patch) | |
| tree | 46fea810b0d498c8f2ed22d449a174c44806ba9b /.config | |
| parent | c80905abce76f3b119603a99297710fcd19ead1e (diff) | |
| download | eibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.tar.gz eibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.tar.zst eibhear-7b74f9d8c2c658399596ac0babbd4fe1c1d10506.zip | |
bm* files, shortcuts and alias to .config
Diffstat (limited to '.config')
| -rw-r--r-- | .config/aliasrc | 32 | ||||
| -rw-r--r-- | .config/bmdirs | 10 | ||||
| -rw-r--r-- | .config/bmfiles | 17 | ||||
| -rw-r--r-- | .config/vifm/vifmrc | 2 |
4 files changed, 60 insertions, 1 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 % ;} diff --git a/.config/bmdirs b/.config/bmdirs new file mode 100644 index 0000000..f3e29be --- /dev/null +++ b/.config/bmdirs @@ -0,0 +1,10 @@ +# You can add comments to these files with # +h ~/ +d ~/Documents +D ~/Downloads +m ~/Music +pp ~/Pictures +vv ~/Videos +cf ~/.config +sc ~/.scripts +mn /mnt diff --git a/.config/bmfiles b/.config/bmfiles new file mode 100644 index 0000000..d657c83 --- /dev/null +++ b/.config/bmfiles @@ -0,0 +1,17 @@ +bf ~/.bmfiles +bd ~/.bmdirs +cfb ~/.bashrc +cfa ~/.aliasrc +cfz ~/.zshrc +cfv ~/.config/nvim/init.vim +cfr ~/.config/ranger/rc.conf +cfi ~/.config/i3/config +cfm ~/.config/mutt/muttrc +eb ~/Documents/LaTeX/uni.bib +cv ~/Documents/LaTeX/cv.tex +cfd ~/.Xdefaults +cfu ~/.config/newsboat/urls +cfn ~/.config/newsboat/config +cfmb ~/.config/ncmpcpp/bindings +cfmc ~/.config/ncmpcpp/config +er ~/.referbib diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 59ec1a9..bf82bc0 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -1,5 +1,5 @@ " vim: filetype=vim -source ~/.vifmshortcuts +source ~/.config/vifm/vifmshortcuts map <C-h> <C-w>h map <C-j> <C-w>j |
