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'
lr /home /data /etc -L -t '(name ~~ "^\." && prune || print) && type = d && !(name = ".git")' \
| fzf \
| read -l dir
[ "$dir" ]; and cd $dir; and clear
end