X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=.shellrc;fp=.shellrc;h=3e238bd5546ca21863eae260caee660686c47598;hb=9c24f5210ec5ebca94688aa195a1ee6a07d7d0e5;hp=892921c6beb5cbcc383929c5a5f0ddbf41456f7f;hpb=b6cdcff5e4d2bbf5342db3466b316dd6210bc035;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 892921c..3e238bd 100644 --- a/.shellrc +++ b/.shellrc @@ -165,6 +165,14 @@ if which tmux >/dev/null 2>&1; then fi +vim() { + command vim "$@" + rc=$? + cd "`cat \"$HOME/tmp/vim/cwd\"`" && rm "$HOME/tmp/vim/cwd" && + return $rc +} + + if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then X() { startx >> .Xserver.log 2>&1; cyr; rm -f .Xauthority; } fi