diff --git a/examples/IPython Kernel/ipython-completion.bash b/examples/IPython Kernel/ipython-completion.bash index 61b2ce4..30eafdf 100644 --- a/examples/IPython Kernel/ipython-completion.bash +++ b/examples/IPython Kernel/ipython-completion.bash @@ -24,7 +24,7 @@ _ipython() { local cur=${COMP_WORDS[COMP_CWORD]} local prev=${COMP_WORDS[COMP_CWORD - 1]} - local subcommands="kernel profile locate history kernelspec" + local subcommands="kernel profile locate history" local opts="help" if [ -z "$__ipython_complete_baseopts" ]; then _ipython_get_flags baseopts @@ -53,7 +53,7 @@ _ipython() "locate" | "profile") _ipython_get_flags $mode ;; - "history" | "kernelspec") + "history") if [[ $COMP_CWORD -ge 3 ]]; then # 'history trim' and 'history clear' covered by next line _ipython_get_flags $mode\ "${COMP_WORDS[2]}" @@ -83,15 +83,6 @@ _ipython() fi local IFS=$'\t\n' COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - elif [[ $mode == "kernelspec" ]]; then - if [[ $COMP_CWORD -ge 3 ]]; then - # drop into flags - opts="--" - else - opts="list install " - fi - local IFS=$'\t\n' - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) elif [[ $mode == "locate" ]]; then if [[ $COMP_CWORD -ge 3 ]]; then # drop into flags