Update bash completion for Debian.

This improves the completion, as suggested in
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782169>,
and moves the completion from `/etc/bash_completion.d/mosh` to
`/usr/share/bash-completion/completions/mosh` as recommended by
lintian in its `package-install-into-obsolete-dir` check.

Closes #628.

Signed-off-by: John Hood <cgull@glup.org>
This commit is contained in:
John Hood
2015-06-11 01:26:02 -04:00
parent a099638603
commit 05da49fc3f
4 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
nobase_dist_sysconf_DATA =
nobase_dist_data_DATA =
if INSTALL_UFW
nobase_dist_sysconf_DATA += ufw/applications.d/mosh
endif
if INSTALL_COMPLETION
nobase_dist_sysconf_DATA += bash_completion.d/mosh
nobase_dist_data_DATA += bash-completion/completions/mosh
endif
+9
View File
@@ -0,0 +1,9 @@
_mosh () {
local cur prev
_init_completion || return
_known_hosts_real -a "$cur"
}
complete -F _mosh mosh
-1
View File
@@ -1 +0,0 @@
complete -F _known_hosts mosh
+1
View File
@@ -0,0 +1 @@
conf/bash_completion.d/mosh