X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zsh%2F.zshrc;h=d109213a429eecdf1dd30c2e5b4a7bf4b6b9ed2d;hb=1e5770e6670f103db46d6d7dc1155e7f9fbe5cf1;hp=c8591ba5972046a12e51459d5fdbc643e5aeee06;hpb=d0382ac857db24d7b72bf60c77e347596e9c7e52;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index c8591ba..d109213 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 }