summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-06-06 21:06:47 -0700
committerxyz <gky44px1999@gmail.com>2021-06-06 21:06:47 -0700
commit4011aa6327cbf51d39cb219d11811f627f7bb489 (patch)
tree07a89a2a1cc8c5ef6fa13c8df7d26bd18f4a07a9 /.bash_profile
parent15773cd09934c94ac4facca83afa72343d2e254f (diff)
edit fzf
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 17943f72..634f1844 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -15,7 +15,9 @@ export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
export QT_STYLE_OVERRIDE=kvantum
export PATH="$(find ~/.local/bin -type d -printf %p:)$PATH"
#export FZF_DEFAULT_COMMAND="fd --hidden --follow --exclude .git"
-export FZF_DEFAULT_COMMAND="find . -not -path './\.git/*'"
+export FZF_DEFAULT_COMMAND="sudo find . -path '*/\.git' -prune -o -print"
+export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
+export FZF_ALT_C_COMMAND="sudo find . -path '*/\.git' -prune -o -type d -print"
# startx when login, should be put after environmental variables for .xinitrc to use
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then