##// END OF EJS Templates
bash completion: profile, history, locate cmds
Paul Ivanov -
Show More
@@ -43,10 +43,8 b' _ipython()'
43 fi
43 fi
44 done
44 done
45
45
46 if [[ $mode == "profile" ]]; then
46
47 opts="list create"
47 if [[ ${cur} == -* ]]; then
48 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
49 elif [[ ${cur} == -* ]]; then
50 case $mode in
48 case $mode in
51 "notebook" | "qtconsole" | "console" | "kernel")
49 "notebook" | "qtconsole" | "console" | "kernel")
52 _ipython_get_flags $mode
50 _ipython_get_flags $mode
@@ -63,6 +61,15 b' _ipython()'
63 local IFS=$'\t\n'
61 local IFS=$'\t\n'
64 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
62 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
65 return 0
63 return 0
64 elif [[ $mode == "profile" ]]; then
65 opts="list create locate"
66 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
67 elif [[ $mode == "history" ]]; then
68 opts="trim"
69 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
70 elif [[ $mode == "locate" ]]; then
71 opts="profile"
72 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
66 elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then
73 elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then
67 if [ -z "$__ipython_complete_pylab" ]; then
74 if [ -z "$__ipython_complete_pylab" ]; then
68 __ipython_complete_pylab=`cat <<EOF | python -
75 __ipython_complete_pylab=`cat <<EOF | python -
General Comments 0
You need to be logged in to leave comments. Login now