X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.config%2Fshell%2Fcommonrc;fp=.config%2Fshell%2Fcommonrc;h=a5298873cafdd6fa343bdc4e03761ee510602885;hp=3d9870a7b7271f7c8131948cec26eff6d64d477b;hb=c3864f21c97f96577b2bfc3b4b1f492840fd850b;hpb=7f59e8b721746dbf0741f0083a1a5e74ce973278 diff --git a/.config/shell/commonrc b/.config/shell/commonrc index 3d9870a..a529887 100644 --- a/.config/shell/commonrc +++ b/.config/shell/commonrc @@ -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"