]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Software should know about stow-ed ~/local
[dotfiles.git] / zsh / .zshrc
index c8591ba5972046a12e51459d5fdbc643e5aeee06..d109213a429eecdf1dd30c2e5b4a7bf4b6b9ed2d 100644 (file)
@@ -81,7 +81,7 @@ alias vi="vim"
 alias more="less"
 alias m="less "
 alias -g M="| less"
-alias -g W="| wc -l"
+alias -g W="| wc -l | sed 's/ //g'"
 alias mc="mc --nomouse"
 alias sent="mutt -f =sent-\`date '+%y-%m'\`"
 alias zc=~/bin/dc-wrapped.sh
@@ -213,7 +213,7 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan"
 # fzf {{{
 export FZF_DEFAULT_OPTS="--color=16 --info=inline"
 cf() {
-    local dir=$(find ${1:-.} -path "*/\.git" -prune -o -type d -print |
+    local dir=$(find ${1:-.} -mindepth 1 -path "*/\.git" -prune -o -type d -print |
         fzf --height 40% --reverse --preview="tree -CN {}")
     [[ -z $dir ]] || cd $dir
 }