Show More
@@ -60,8 +60,18 b' _ipython()' | |||||
60 | COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
|
60 | COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | |
61 | return 0 |
|
61 | return 0 | |
62 | elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then |
|
62 | elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then | |
63 | _ipython_get_flags core.shellapp InteractiveShellApp.pylab.values |
|
63 | if [ -z "$__ipython_complete_pylab" ]; then | |
64 | COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
|
64 | __ipython_complete_pylab=$(cat <<EOF | python - | |
|
65 | try: | |||
|
66 | import IPython.core.shellapp as mod; | |||
|
67 | for k in mod.InteractiveShellApp.pylab.values: | |||
|
68 | print "%s" % k, | |||
|
69 | except: | |||
|
70 | pass | |||
|
71 | EOF | |||
|
72 | ) | |||
|
73 | fi | |||
|
74 | COMPREPLY=( $(compgen -W "${__ipython_complete_pylab}" -- ${cur}) ) | |||
65 | elif [[ ${prev} == "--profile"* ]]; then |
|
75 | elif [[ ${prev} == "--profile"* ]]; then | |
66 | if [ -z "$__ipython_complete_profiles" ]; then |
|
76 | if [ -z "$__ipython_complete_profiles" ]; then | |
67 | __ipython_complete_profiles=$(cat <<EOF | python - |
|
77 | __ipython_complete_profiles=$(cat <<EOF | python - |
General Comments 0
You need to be logged in to leave comments.
Login now