diff options
Diffstat (limited to 'completions/_modules')
-rw-r--r-- | completions/_modules | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/_modules b/completions/_modules index 6f337a90..b5a1d94a 100644 --- a/completions/_modules +++ b/completions/_modules @@ -49,7 +49,7 @@ _module () local cur prev words cword _init_completion || return - if [ $cword -eq 1 ] ; then + if [[ $cword -eq 1 ]]; then # First parameter on line -- we expect it to be a mode selection local options @@ -58,7 +58,7 @@ _module () COMPREPLY=( $(compgen -W "$options" -- "$cur") ) - elif [ $cword -eq 2 ] ; then + elif [[ $cword -eq 2 ]]; then case $prev in add|display|help|load|show|whatis) COMPREPLY=( $(_module_avail "$cur") ) @@ -70,7 +70,7 @@ _module () COMPREPLY=( $(_module_path "$cur") ) ;; esac - elif [ $cword -eq 3 ] ; then + elif [[ $cword -eq 3 ]]; then case ${words[1]} in swap|switch) COMPREPLY=( $(_module_avail "$cur") ) |