aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.fzfrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/.fzfrc b/.fzfrc
index 0d3b3fa..7a58bd8 100755
--- a/.fzfrc
+++ b/.fzfrc
@@ -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=$(