Created
September 13, 2019 12:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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