From 3ab362ea8be3bb0750d46d7eadad273c65343331 Mon Sep 17 00:00:00 2001 From: tiynger Date: Mon, 16 Sep 2019 18:00:32 +0200 Subject: [PATCH] new finder commands --- .config/aliasrc | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.config/aliasrc b/.config/aliasrc index 0503ee8..1d2cf57 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -28,15 +28,19 @@ alias c="clear && neofetch" # config alias config="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" +# fzf +sc() { du -a ~/.config/* ~/.local/bin/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;} +sd() { du -a ~/ownCloud/* | awk '{print $2}' | fzf | xargs -r $READER ;} + +# git +alias TexHandout="cp ~/github/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex" + # grep alias grep="grep --color=auto" # lastpass alias lastpass="lpass" -# latex -alias TexHandout="cp ~/github/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex" - # ls(d) alias l="lsd" alias la="lsd -la" @@ -66,22 +70,11 @@ alias rm="rm -i" alias root="sudo -i" alias su="sudo -i" -# vim -alias svim="sudo vim" +# nvim +alias svim="sudo nvim" +command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # weather alias weather="curl wttr.in" -# random -alias file="ranger" -alias files="ranger" -alias image="sxiv" -alias mail="neomutt" -alias music="mpv" -alias news="newsboat" -alias reddit="rtv" -alias table="sc-im" -alias text="vim" -alias video="mpv" -