]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Simplify dc invocation
[dotfiles.git] / zsh / .zshrc
index c8591ba5972046a12e51459d5fdbc643e5aeee06..7a8164246d6bcbe571e7dc24ad85b34a8d16dc3c 100644 (file)
@@ -81,10 +81,9 @@ 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
 
 f() {
     # find . -name "*$1*" -print
@@ -213,7 +212,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
 }