##// END OF EJS Templates
fix locate profile completion
Paul Ivanov -
Show More
@@ -93,7 +93,13 b' _ipython()'
93 local IFS=$'\t\n'
93 local IFS=$'\t\n'
94 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
94 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
95 elif [[ $mode == "locate" ]]; then
95 elif [[ $mode == "locate" ]]; then
96 opts="profile"
96 if [[ $COMP_CWORD -ge 3 ]]; then
97 # drop into flags
98 opts="--"
99 else
100 opts="profile "
101 fi
102 local IFS=$'\t\n'
97 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
103 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
98 elif [[ ${prev} == "--matplotlib"* ]] || [[ ${prev} == "--gui"* ]]; then
104 elif [[ ${prev} == "--matplotlib"* ]] || [[ ${prev} == "--gui"* ]]; then
99 if [ -z "$__ipython_complete_matplotlib" ]; then
105 if [ -z "$__ipython_complete_matplotlib" ]; then
General Comments 0
You need to be logged in to leave comments. Login now