aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-02 23:11:55 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-02 23:11:55 +1300
commit3aa53b7ef6cf18fa13c1a00c529f04656f0bf747 (patch)
tree234f4facce6147d3f745ee48dc65ced2b251216f /bash
parentf7b14abebc09ac9720c259c26b91b0640d2555a0 (diff)
downloaddotfiles-3aa53b7ef6cf18fa13c1a00c529f04656f0bf747.tar.gz
dotfiles-3aa53b7ef6cf18fa13c1a00c529f04656f0bf747.zip
Use native filename quoting for td(1df) complete
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/eds.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_completion.d/eds.bash b/bash/bash_completion.d/eds.bash
index c6bff655..01db4129 100644
--- a/bash/bash_completion.d/eds.bash
+++ b/bash/bash_completion.d/eds.bash
@@ -27,8 +27,8 @@ _eds() {
# Skip non-executable files
[[ -x $file ]] || continue
# Print quoted entry, slash-terminated
- printf '%q/' "${file##*/}"
+ printf '%s/' "${file##*/}"
done
)
}
-complete -F _eds eds
+complete -F _eds -o filenames eds