configuration/config/fish/functions/go.fish
2017-03-22 18:19:08 +01:00

7 lines
228 B
Fish

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