readline config
[dotfiles.git] / .config / shell / commonrc
index 3d9870a..a529887 100644 (file)
@@ -15,9 +15,13 @@ 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=fzf --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; if [ -d '{}' ]; then ls -A {}; else head -$LINES {}; fi'"
+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"
 alias b="$BROWSER"