From f0ea8bdbbfcc7b255ecc8f0942ddb9fe2e6c31ca 2013-11-15 06:22:07 From: Paul Ivanov Date: 2013-11-15 06:22:07 Subject: [PATCH] bash completion: fix flags for history w/o subcmd --- diff --git a/examples/core/ipython-completion.bash b/examples/core/ipython-completion.bash index ead1f7a..57dcde0 100644 --- a/examples/core/ipython-completion.bash +++ b/examples/core/ipython-completion.bash @@ -54,7 +54,7 @@ _ipython() _ipython_get_flags $mode ;; "history") - if [[ $COMP_CWORD -ge 2 ]]; then + if [[ $COMP_CWORD -ge 3 ]]; then # 'history trim' and 'history clear' covered by next line _ipython_get_flags history\ "${COMP_WORDS[2]}" else