diff options
-rwxr-xr-x | .fzfrc | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -32,6 +32,20 @@ esac # functions +fcd () { + local dir dirs + if command -v fd &> /dev/null; then + dirs=$( + fd --type directory --hidden \ + --exclude .git --no-ignore + ) + fi + dir=$(echo "$dirs" | fzf) + if [ $? -eq 0 ]; then + cd "$dir" + fi +} + fco () { local tags branches target branches=$( |