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