vimrc clean + snippets
[dotfiles.git] / .config / shell / commonrc
index e9a7df0..c364a63 100644 (file)
@@ -2,6 +2,8 @@
 # alias
 alias ls='ls --color=auto'
 alias grep='grep --color=auto'
+alias trree='tree -C'
+
 alias cp='cp -i'
 alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
 alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master'
@@ -15,7 +17,12 @@ alias drill-srs='drill-srs 2>/dev/null'
 alias scrkey='screenkey -t 2.5 --mods-mode emacs -s small -p fixed -g $(slop -n -f '%g')'
 alias mdp='export TERM=st; mdp'
 alias R='R --vanilla'
-alias fzf="fzf --color=16 --header=peee --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; head -$LINES {}'"
+alias fzf="fzf --color=16 --header=fzf --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; if [ -d '{}' ]; then ls -A {}; else head -$LINES {}; fi'" # fzf options when running from shell
+alias gdb="gdb -q"
+
+mkcd() {
+    mkdir "$1" && cd "$1"
+}
 
 alias v="$EDITOR"
 alias z="$READER"