From 44f26936366c0cdefa8ba0091af5c7fae37c0bc2 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Mon, 30 Sep 2013 06:40:51 +0400 Subject: [PATCH] autocompletion pour ussh et cssh --- lib/bashrc.d/bash_completion.nutools | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/bashrc.d/bash_completion.nutools diff --git a/lib/bashrc.d/bash_completion.nutools b/lib/bashrc.d/bash_completion.nutools new file mode 100644 index 0000000..61307a0 --- /dev/null +++ b/lib/bashrc.d/bash_completion.nutools @@ -0,0 +1,8 @@ +# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 + +if [ -n "$BASH_COMPLETION" ]; then + if [ -f "$BASH_COMPLETION_DIR/ssh" ]; then + shopt -u hostcomplete + complete -F _ssh ussh cssh + fi +fi