]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: Avoid excessive spaces on completion
authorOleg Broytman <phd@phdru.name>
Sat, 21 Sep 2019 00:12:48 +0000 (03:12 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 21 Sep 2019 00:12:48 +0000 (03:12 +0300)
Especially for `rsync` completion.

.shellrc

index 044801b10974c82eb3fcef1afe04a628f847e017..6673fe450ad318b3907ec85fe0f732747f5a40e5 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -130,7 +130,7 @@ if test -n "$BASH_VERSION"; then
          programs="$@"
          eval "_${prog}_completion_loader() {
             _completion_loader $prog
-            complete -F _$prog $programs
+            complete -o nospace -F _$prog $programs
             unset _${prog}_completion_loader
             return 124
          }"