From 2e8969461ebffc68d4228635f84dda6fc8d0ee97 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 3 Jul 2020 14:27:10 +0300 Subject: [PATCH] F4/F5 directory movement --- zsh/.zshrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 95fc046..565ac5f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -89,7 +89,6 @@ alias m="less " alias -g M="| less" alias -g W="| wc -l" alias mc="mc --nomouse" -bindkey -s "OS" " popd\n" # F4 f() { # find . -name "*$1*" -print @@ -102,6 +101,22 @@ ssht() { alias sshnm="ssh -S none" # }}} +# Faster movement {{{ +pushdquiet() { + popd >/dev/null + zle reset-prompt +} +zle -N pushdquiet +bindkey "OS" pushdquiet # F4 + +cddotdot() { + cd .. + zle reset-prompt +} +zle -N cddotdot +bindkey "[15~" cddotdot # F5 +# }}} + # Git {{{ alias Ga="git add" alias Gb="git branch" -- 2.44.0