summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/completion.zsh2
-rw-r--r--shell/key-bindings.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 25c021a8..74d1ad32 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -54,7 +54,7 @@ __fzf_generic_path_completion() {
[ "$dir" != "/" ] && dir="${dir/%\//}"
dir=${~dir}
matches=$(eval "$compgen $(printf %q "$dir")" | ${=fzf} ${=FZF_COMPLETION_OPTS} ${=fzf_opts} -q "$leftover" | while read item; do
- printf "%q$suffix " "$item"
+ echo -n "${(q)item}$suffix "
done)
matches=${matches% }
if [ -n "$matches" ]; then
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 8a03585d..f60bbaea 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -9,7 +9,7 @@ __fsel() {
-o -type d -print \
-o -type l -print 2> /dev/null | sed 1d | cut -b3-"}"
eval "$cmd" | $(__fzfcmd) -m | while read item; do
- printf '%q ' "$item"
+ echo -n "${(q)item} "
done
echo
}