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:
+2
-1
@@ -1,9 +1,10 @@
|
|||||||
nobase_dist_sysconf_DATA =
|
nobase_dist_sysconf_DATA =
|
||||||
|
nobase_dist_data_DATA =
|
||||||
|
|
||||||
if INSTALL_UFW
|
if INSTALL_UFW
|
||||||
nobase_dist_sysconf_DATA += ufw/applications.d/mosh
|
nobase_dist_sysconf_DATA += ufw/applications.d/mosh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if INSTALL_COMPLETION
|
if INSTALL_COMPLETION
|
||||||
nobase_dist_sysconf_DATA += bash_completion.d/mosh
|
nobase_dist_data_DATA += bash-completion/completions/mosh
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
_mosh () {
|
||||||
|
local cur prev
|
||||||
|
|
||||||
|
_init_completion || return
|
||||||
|
|
||||||
|
_known_hosts_real -a "$cur"
|
||||||
|
}
|
||||||
|
|
||||||
|
complete -F _mosh mosh
|
||||||
@@ -1 +0,0 @@
|
|||||||
complete -F _known_hosts mosh
|
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
conf/bash_completion.d/mosh
|
||||||
Reference in New Issue
Block a user