summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-09-21 14:26:46 +0200
committerAlan Pearce2020-09-21 14:33:35 +0200
commit4ff2d20962c20e12533209296dc836e53948cec0 (patch)
tree114ad741ffa47c9f04f25b3e8212ae7caa3682e0
parent03c8b96941ca7f9fb28793872c8c8cc5ed8b3eb7 (diff)
downloadnixfiles-4ff2d20962c20e12533209296dc836e53948cec0.tar.lz
nixfiles-4ff2d20962c20e12533209296dc836e53948cec0.tar.zst
nixfiles-4ff2d20962c20e12533209296dc836e53948cec0.zip
zsh: include untracked files in fzf ^X^F binding
-rw-r--r--user/zsh/zshrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index c90fa933..195eaedb 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -111,9 +111,7 @@ else
   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