]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
git-diff --cached used often
[dotfiles.git] / zsh / .zshrc
index 5e5d3e9dcddf8cb5f06570b936f3393a8f0dbe5b..048fee325f080804863f9409a343d93c463fe33e 100644 (file)
@@ -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)/-}"
@@ -104,13 +97,14 @@ alias sshnm="ssh -S none"
 # Faster movement {{{
 cddotdot() {
     cd ..
+    pwd
     zle reset-prompt
 }
 zle -N cddotdot
 bindkey "\eOQ" cddotdot # F2
 
 pushdquiet() {
-    popd >/dev/null
+    popd
     zle reset-prompt
 }
 zle -N pushdquiet
@@ -122,7 +116,8 @@ alias Ga="git add"
 alias Gb="git branch"
 alias Gc="git checkout"
 alias Gd="git diff"
-alias Gs="git show"
+alias Gdc="git diff --cached"
+alias Gs="git show --show-signature"
 alias Gm="git diff --name-only --diff-filter=M"
 alias Gam="git commit --amend"