From 93e8874e621d403976eaca72337b968778f98328 Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 14 Aug 2022 03:34:40 -0700 Subject: .profile fzf env no sudo --- home/xyz/.profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'home/xyz/.profile') diff --git a/home/xyz/.profile b/home/xyz/.profile index 1ae6b42b..2e3592fb 100644 --- a/home/xyz/.profile +++ b/home/xyz/.profile @@ -54,14 +54,14 @@ export XMODIFIERS=@im=fcitx #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 . -mindepth 1 -path '*/\.git' -prune -o -print" +export FZF_DEFAULT_COMMAND="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" -mindepth 1 -path "*/\.git" -prune -o -print' +export FZF_CTRL_T_COMMAND='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 . -mindepth 1 -path '*/\.git' -prune -o -type d -print" +export FZF_ALT_C_COMMAND="find . -mindepth 1 -path '*/\.git' -prune -o -type d -print" export SCR_WIDTH=1920 export SCR_HEIGHT=1080 -- cgit v1.2.3-70-g09d2