correctly prune git-directories for go

This commit is contained in:
Felix Van der Jeugt 2017-03-22 18:19:08 +01:00
parent 14ac88d012
commit f151dfedb6
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -1,5 +1,5 @@
function go --description 'Jump to directories'
lr /home /data /etc -L -t '(name ~~ "^\." && prune || print) && type = d && !(name = ".git")' \
lr /home /data /etc -L -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \
| fzf \
| read -l dir
[ "$dir" ]; and cd $dir; and clear