setopt GLOB_STAR_SHORT GLOB_DOTS EXTENDED_GLOB
setopt NO_NOMATCH
setopt AUTO_PUSHD PUSHD_IGNORE_DUPS
+
+setopt RM_STAR_SILENT
+export LISTMAX=9999
# }}}
# Vi mode {{{
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
-bindkey "^R" history-incremental-search-backward
+bindkey "^R" history-incremental-pattern-search-backward
# }}}
# Prompt {{{
alias Gs="git show"
alias Gm="git diff --name-only --diff-filter=M"
alias Gam="git commit --amend"
+alias -g W="| wc -l"
git_common="--oneline --abbrev-commit"
alias Gl="git log $git_common --graph --decorate=short"
g() {
$GREP ${=GREP_ARGS} $@ | ${=LESS_COLORED}
}
-gS() {
+GS() {
$GREP ${=GREP_ARGS} $@ | sort --numeric-sort | ${=LESS_COLORED}
}
alias -g G="| $GREP --color"
autoload -U compinit ; compinit -d /tmp/.zcompdump
zstyle ":completion:*:default" list-colors ""
autoload -U complist
-export LISTMAX=9999
# }}}
# Highlighting {{{