summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-08-26 00:23:06 -0700
committerxyz <gky44px1999@gmail.com>2021-08-26 00:23:06 -0700
commit7a9e4a35f88ba955332dadeef75668105003aaac (patch)
tree405044c73f98a1d5f4ddaa218749611d0d986365 /.bash_profile
parent586f8fcf7d665eb9647bac368c72d93d1ee60ecd (diff)
ignore ./ "" around $PWD
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)