=================================================================== RCS file: /cvs/mtctl/mtctl-completion.bash,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- mtctl/mtctl-completion.bash 2021/09/26 14:02:56 1.2 +++ mtctl/mtctl-completion.bash 2022/05/29 14:30:49 1.3 @@ -3,7 +3,7 @@ _mtctl_completions() { 1) local suggestions=($(compgen -W "start stop restart status create backup list version help" -- "${COMP_WORDS[1]}")) ;; 2) if [ "${COMP_WORDS[1]}" == "help" ] || [ "${COMP_WORDS[1]}" == "list" ] || [ "${COMP_WORDS[1]}" == "version" ]; then return; fi - local suggestions=($(cd $(cat $HOME/.mtctl/config | grep 'location' | sed -e 's/location\=//')/worlds && compgen -d "${COMP_WORDS[2]}")) +local suggestions=($(cd $(cat $HOME/.mtctl/config | grep 'location' | sed -e 's/location\=//')/worlds && compgen -d "${COMP_WORDS[2]}")) ;; *) return ;; @@ -17,4 +17,3 @@ _mtctl_completions() { } complete -F _mtctl_completions mtctl -