summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-07-18 11:22:42 -0700
committerxyz <gky44px1999@gmail.com>2021-07-18 11:22:42 -0700
commit14c592c84e34ae71a8d36c49aa4c3371fbe09054 (patch)
tree6fc6fa283cb51bc79cddf3e990d83ec649791a16
parent255a14c9efcd8250b1cc1f09059ba17b5a16dd84 (diff)
fix fzf bug, use fd instead
-rw-r--r--.bash_profile17
1 files changed, 12 insertions, 5 deletions
diff --git a/.bash_profile b/.bash_profile
index b6c966d1..024926f7 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -19,13 +19,20 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
#export QT_QPA_PLATFORMTHEME=qt5ct
export QT_STYLE_OVERRIDE=kvantum
-#export FZF_DEFAULT_COMMAND="fd --no-ignore --hidden --exclude .git"
-export FZF_DEFAULT_COMMAND="sudo find . -path '*/\.git' -prune -o -print"
-#export FZF_CTRL_T_COMMAND="fd --absolute-path --no-ignore --hidden --exclude .git"
-export FZF_CTRL_T_COMMAND="sudo find $(pwd) -path '*/\.git' -prune -o -print"
-export FZF_ALT_C_COMMAND="sudo find . -path '*/\.git' -prune -o -type d -print"
export SDCV_PAGER="less --quit-if-one-screen -RX"
+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"
+# 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'
+# ~+ 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"
+
# for clipmenu
# set clipmenud to store clipboard only, don't store selection (primary)
#export CM_SELECTIONS="clipboard"