parent
1453625e50
commit
e6a18ac7cf
@ -960,7 +960,7 @@ _insmod()
|
|||||||
[[ "${COMP_WORDS[COMP_CWORD-1]}" != -* ]]; then
|
[[ "${COMP_WORDS[COMP_CWORD-1]}" != -* ]]; then
|
||||||
# do module parameter completion
|
# do module parameter completion
|
||||||
COMPREPLY=( $( /sbin/modinfo -p ${COMP_WORDS[1]} 2>/dev/null | \
|
COMPREPLY=( $( /sbin/modinfo -p ${COMP_WORDS[1]} 2>/dev/null | \
|
||||||
awk '{if ($1 ~ /^parm:/ && $2 ~ /^'$cur'/) { print $2 } \
|
awk '{if ($1 ~ /^parm:/ && $2 ~ /^'"$cur"'/) { print $2 } \
|
||||||
else if ($1 !~ /:/ && $1 ~ /^'"$cur"'/) { print $1 }}' ) )
|
else if ($1 !~ /:/ && $1 ~ /^'"$cur"'/) { print $1 }}' ) )
|
||||||
else
|
else
|
||||||
_modules $(uname -r)
|
_modules $(uname -r)
|
||||||
|
@ -18,7 +18,7 @@ _alias()
|
|||||||
;;
|
;;
|
||||||
*=)
|
*=)
|
||||||
COMPREPLY=( "$( alias ${cur%=} 2>/dev/null | \
|
COMPREPLY=( "$( alias ${cur%=} 2>/dev/null | \
|
||||||
sed -e 's|^alias '$cur'\(.*\)$|\1|' )" )
|
sed -e 's|^alias '"$cur"'\(.*\)$|\1|' )" )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user