]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Even more bold prompt
[dotfiles.git] / zsh / .zshrc
index 4aa6a4ff9c01b87016eaa5bbfc87710b754ddf1e..49c03af9319b4a48944b932b5a00e43e2521e88f 100644 (file)
@@ -47,7 +47,7 @@ function zle-line-init zle-keymap-select {
     prompt+="%U${timer_show}%u|"
     prompt+="%B%?%b"
     prompt+="${mode_vi}"
-    prompt+="%F{magenta}%#%f "
+    prompt+="%B%F{magenta}%#%f%b "
     PS1="$prompt"
     zle reset-prompt
 }
@@ -71,6 +71,7 @@ alias vi="vim"
 alias more="less"
 alias m="less "
 alias -g M="| less"
+alias -g W="| wc -l"
 alias mc="mc --nomouse"
 bindkey -s "\eOS" " popd\n" # F4
 
@@ -93,7 +94,6 @@ alias Gd="git diff"
 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"
@@ -152,7 +152,8 @@ alias zc="zcalc"
 zstyle ":completion:*:functions" ignored-patterns "_*"
 zstyle ":completion:*" matcher-list "" 'm:{a-z\-}={A-Z\_}' 'r:|?=** m:{a-z\-}={A-Z\_}'
 _mycomp () {
-    [ $CURRENT -eq 1 ] && _command_names || _files && return 0
+    [ "$words[1]" != "man" ] || { _man && return 0 }
+    [ $CURRENT -eq 1 ] && _command_names ||  _files && return 0
     # MAGIC_EQUAL_SUBST {{{
     [[ "$PREFIX" = *\=* ]] || return 1
     compstate[parameter]="${PREFIX%%\=*}"