X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zsh%2F.zshrc;h=42dbbb4121d75b67a0d530b3837dcb97b4737d45;hb=e7c927d390cefc1aeda054224207841c435f588b;hp=565ac5fa7dc7adb2bb661af5a748ddb1d09c6c69;hpb=2e8969461ebffc68d4228635f84dda6fc8d0ee97;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index 565ac5f..42dbbb4 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -48,13 +48,6 @@ bindkey -M isearch "^[[A" history-incremental-pattern-search-backward bindkey -M isearch "^[[B" history-incremental-pattern-search-forward # }}} -# URL quoting {{{ -autoload -U url-quote-magic -autoload -U bracketed-paste-magic -zle -N self-insert url-quote-magic -zle -N bracketed-paste bracketed-paste-magic -# }}} - # Prompt {{{ function zle-line-init zle-keymap-select { mode_vi="${${KEYMAP/vicmd/+}/(main|viins)/-}" @@ -102,19 +95,20 @@ alias sshnm="ssh -S none" # }}} # Faster movement {{{ -pushdquiet() { - popd >/dev/null - zle reset-prompt -} -zle -N pushdquiet -bindkey "OS" pushdquiet # F4 - cddotdot() { cd .. + pwd zle reset-prompt } zle -N cddotdot -bindkey "[15~" cddotdot # F5 +bindkey "OQ" cddotdot # F2 + +pushdquiet() { + popd + zle reset-prompt +} +zle -N pushdquiet +bindkey "OS" pushdquiet # F4 # }}} # Git {{{ @@ -131,7 +125,6 @@ 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' -" -bindkey -s "OQ" " git status\n" # F2 bindkey -s "OR" " git status --short\n" # F3 # }}}