all repos — nixfiles @ 4ff2d20962c20e12533209296dc836e53948cec0

System and user configuration, managed by nix and home-manager

zsh: include untracked files in fzf ^X^F binding
Alan Pearce alan@alanpearce.eu
Mon, 21 Sep 2020 14:26:46 +0200
commit

4ff2d20962c20e12533209296dc836e53948cec0

parent

03c8b96941ca7f9fb28793872c8c8cc5ed8b3eb7

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M user/zsh/zshrcuser/zsh/zshrc
@@ -111,9 +111,7 @@ AGKOZAK_CUSTOM_RPROMPT='${prompt_context}%(3V.%F{${AGKOZAK_COLORS_BRANCH_STATUS}%3v%f.)'   fi
 fi
 
-export FZF_CTRL_T_COMMAND='
-  (git ls-tree -r --name-only HEAD ||
-        fd --hidden --follow --exclude ".git" .) 2> /dev/null'
+export FZF_CTRL_T_COMMAND='(fd --hidden --follow --exclude ".git" .) 2> /dev/null'
 export FZF_ALT_C_COMMAND='fd --type d --hidden --follow --exclude ".git" .'
 export FZF_DEFAULT_COMMAND=$FZF_CTRL_T_COMMAND