summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2020-09-04 15:52:47 +0200
committerAlan Pearce2020-09-04 15:52:47 +0200
commit4a6818f03acf0d9168402d7334cb00f6de1875e0 (patch)
tree99191ca8c8c5fa76d883f07473ce838aa1850684 /user/zsh
parent0524e9cc1abbad93fb6c12cd3a22ca602086a9e7 (diff)
downloadnixfiles-4a6818f03acf0d9168402d7334cb00f6de1875e0.tar.lz
nixfiles-4a6818f03acf0d9168402d7334cb00f6de1875e0.tar.zst
nixfiles-4a6818f03acf0d9168402d7334cb00f6de1875e0.zip
zsh: Fix missing leading characters in fzf file search
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/zshrc3
1 files changed, 1 insertions, 2 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index e7bc871b..6632490e 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -110,8 +110,7 @@ fi
 
 export FZF_CTRL_T_COMMAND='
   (git ls-tree -r --name-only HEAD ||
-        fd --hidden --follow --exclude ".git" . |
-              sed s/^..//) 2> /dev/null'
+        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