##// END OF EJS Templates
fix profile subcommand completion
Julian Taylor -
Show More
@@ -21,7 +21,7 b' _ipython()'
21 21 local subcommands="notebook qtconsole console kernel profile locate"
22 22 local opts=""
23 23 if [ -z "$__ipython_complete_baseopts" ]; then
24 _ipython_get_flags core.shellapp "shell_flags.keys()" "--"
24 _ipython_get_flags baseopts
25 25 __ipython_complete_baseopts="${opts}"
26 26 fi
27 27 local baseopts="$__ipython_complete_baseopts"
@@ -37,7 +37,10 b' _ipython()'
37 37 fi
38 38 done
39 39
40 if [[ ${cur} == -* ]]; then
40 if [[ $mode == "profile" ]]; then
41 opts="list create"
42 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
43 elif [[ ${cur} == -* ]]; then
41 44 if [[ $mode == "notebook" ]]; then
42 45 _ipython_get_flags notebook
43 46 opts=$"${opts} ${baseopts}"
@@ -49,8 +52,6 b' _ipython()'
49 52 elif [[ $mode == "kernel" ]]; then
50 53 _ipython_get_flags kernel
51 54 opts="${opts} ${baseopts}"
52 elif [[ $mode == "profile" ]]; then
53 opts="list create"
54 55 elif [[ $mode == "locate" ]]; then
55 56 opts=""
56 57 else
General Comments 0
You need to be logged in to leave comments. Login now