configuration/config/fish/functions/go.fish

7 lines
229 B
Fish
Raw Normal View History

2017-02-13 18:10:03 +01:00
function go --description 'Jump to directories'
2017-03-22 18:19:08 +01:00
lr /home /data /etc -L -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \
2017-03-31 17:13:45 +02:00
| fzf --height 10 \
2017-02-13 18:10:03 +01:00
| read -l dir
2017-03-31 17:13:45 +02:00
[ "$dir" ]; and cd $dir
2017-02-13 18:10:03 +01:00
end