Fix modules completion for "(default)" entries.
This commit is contained in:
parent
098dc9c1b8
commit
af26cfb285
3
CHANGES
3
CHANGES
@ -48,6 +48,9 @@ bash-completion (2.x)
|
|||||||
[ Freddy Vulto ]
|
[ Freddy Vulto ]
|
||||||
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
|
||||||
|
|
||||||
|
[ Ted Stern ]
|
||||||
|
* Fix modules completion for "(default)" entries.
|
||||||
|
|
||||||
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200
|
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200
|
||||||
|
|
||||||
bash-completion (1.1)
|
bash-completion (1.1)
|
||||||
|
@ -35,7 +35,7 @@ _module_avail ()
|
|||||||
local modules="$( \
|
local modules="$( \
|
||||||
module avail 2>&1 | \
|
module avail 2>&1 | \
|
||||||
egrep -v '^(-|$)' | \
|
egrep -v '^(-|$)' | \
|
||||||
xargs printf '%s\n' | sort )"
|
xargs printf '%s\n' | sed -e 's/(default)//g' | sort )"
|
||||||
|
|
||||||
compgen -W "$modules" -- $1
|
compgen -W "$modules" -- $1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user