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