summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile8
1 files changed, 4 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile
index 86535f26..ce2f9d6d 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -41,14 +41,14 @@ export _ZO_ECHO=1
#export FZF_DEFAULT_COMMAND="fd --no-ignore --hidden --exclude .git"
#export FZF_CTRL_T_COMMAND="fd --absolute-path --no-ignore --hidden --exclude .git"
#export FZF_ALT_C_COMMAND="fd --no-ignore --hidden --type d --exclude .git"
-export FZF_DEFAULT_COMMAND="sudo find . -path '*/\.git' -prune -o -print"
+export FZF_DEFAULT_COMMAND="sudo find . -mindepth 1 -path '*/\.git' -prune -o -print"
# https://askubuntu.com/questions/444551/get-absolute-path-of-files-using-find-command
# following two lines if use "" on the outermost, will not perfom expected, not sure why
-export FZF_CTRL_T_COMMAND='sudo find $PWD -path "*/\.git" -prune -o -print'
-#export FZF_CTRL_T_COMMAND='sudo find $(pwd) -path "*/\.git" -prune -o -print'
+export FZF_CTRL_T_COMMAND='sudo find "$PWD" -mindepth 1 -path "*/\.git" -prune -o -print'
+#export FZF_CTRL_T_COMMAND='sudo find "$(pwd)" -path "*/\.git" -prune -o -print'
# ~+ is bashism
#export FZF_CTRL_T_COMMAND="sudo find ~+ -path '*/\.git' -prune -o -print"
-export FZF_ALT_C_COMMAND="sudo find . -path '*/\.git' -prune -o -type d -print"
+export FZF_ALT_C_COMMAND="sudo find . -mindepth 1 -path '*/\.git' -prune -o -type d -print"
# for clipmenu
# set clipmenud to store clipboard only, don't store selection (primary)