From 14c592c84e34ae71a8d36c49aa4c3371fbe09054 Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 18 Jul 2021 11:22:42 -0700 Subject: fix fzf bug, use fd instead --- .bash_profile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to '.bash_profile') 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" -- cgit v1.2.3-70-g09d2