Skip to content

Instantly share code, notes, and snippets.

@grafov
Created September 13, 2019 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grafov/e1b4960d0a99bee5e149e68226b2dffc to your computer and use it in GitHub Desktop.
Save grafov/e1b4960d0a99bee5e149e68226b2dffc to your computer and use it in GitHub Desktop.
Small fish-shell function for using fzf to navigating fast to directories by any part of path or filename that belong to the target directory.
# It uses fzf: https://github.com/junegunn/fzf
function fcd
cd ~
if [ (count $argv) -ge 1 ]
cd (dirname (fzf -q "$argv"))
return
end
cd (dirname (fzf))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment