summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-04 17:09:11 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-05 11:51:24 -0800
commit15022218e4e6983c661ccf1e7beefd598a96e628 (patch)
tree819c4fbaf94af61e4246d9612539c569b2d18bcc /etc
parent51f5983d90c2954ed8ac2f0c90b72917ed568987 (diff)
downloadvyatta-cfg-15022218e4e6983c661ccf1e7beefd598a96e628.tar.gz
vyatta-cfg-15022218e4e6983c661ccf1e7beefd598a96e628.zip
Fix completion of IPv6 address
By default bash completion considers ':' as seperator between tokens when doing completion. But the list of characters is configurable. (cherry picked from commit a7fcaabddafd970790abd99cd9afed0625aac49b)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 83e0e9d..0b37f1c 100755
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -28,6 +28,10 @@ export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTTIMEFORMAT='%FT%T%z '
export PROMPT_COMMAND='history -a'
+
+# remove colon from completion word seperators
+export COMP_WORDBREAKS=${COMP_WORDBREAKS/:/}
+
builtin set histappend=1
# only do this if we are going into configure mode