]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Yet another alternate F-helpers
authorSergey Matveev <stargrave@stargrave.org>
Mon, 6 Jul 2020 15:47:44 +0000 (18:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 6 Jul 2020 15:47:44 +0000 (18:47 +0300)
zsh/.zshrc

index e5dcfaa5b2838714c87a4ed300fdd966ed14b622..5e5d3e9dcddf8cb5f06570b936f3393a8f0dbe5b 100644 (file)
@@ -102,19 +102,19 @@ alias sshnm="ssh -S none"
 # }}}
 
 # Faster movement {{{
 # }}}
 
 # Faster movement {{{
-pushdquiet() {
-    popd >/dev/null
-    zle reset-prompt
-}
-zle -N pushdquiet
-bindkey "\eOR" pushdquiet # F3
-
 cddotdot() {
     cd ..
     zle reset-prompt
 }
 zle -N cddotdot
 bindkey "\eOQ" cddotdot # F2
 cddotdot() {
     cd ..
     zle reset-prompt
 }
 zle -N cddotdot
 bindkey "\eOQ" cddotdot # F2
+
+pushdquiet() {
+    popd >/dev/null
+    zle reset-prompt
+}
+zle -N pushdquiet
+bindkey "\eOS" pushdquiet # F4
 # }}}
 
 # Git {{{
 # }}}
 
 # Git {{{
@@ -131,8 +131,7 @@ alias Gl="git log $git_common --graph --decorate=short"
 alias Gr="git --no-pager log $git_common -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
 alias Grr="git --no-pager log $git_common --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
 
 alias Gr="git --no-pager log $git_common -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
 alias Grr="git --no-pager log $git_common --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
 
-bindkey -s "\e[15~" " git status\n" # F5
-bindkey -s "\e[17~" " git status --short\n" # F6
+bindkey -s "\eOR" " git status --short\n" # F3
 # }}}
 
 # grep {{{
 # }}}
 
 # grep {{{