From 6b9cce1cee681657906e18d1db2185305e87cc7d 2014-06-18 23:51:23 From: Paul Ivanov Date: 2014-06-18 23:51:23 Subject: [PATCH] insert -h --help and --help-all completion options --- diff --git a/examples/IPython Kernel/ipython-completion.bash b/examples/IPython Kernel/ipython-completion.bash index 2be3628..8a93390 100644 --- a/examples/IPython Kernel/ipython-completion.bash +++ b/examples/IPython Kernel/ipython-completion.bash @@ -15,7 +15,7 @@ _ipython_get_flags() fi # matplotlib and profile don't need the = and the # version without simplifies the special cased completion - opts=$(ipython ${url} --help-all | grep -E "^-{1,2}[^-]" | sed -e "s/<.*//" -e "s/[^=]$/& /" -e "s/^--matplotlib=$//" -e "s/^--profile=$/--profile /") + opts=$(ipython ${url} --help-all | grep -E "^-{1,2}[^-]" | sed -e "s/<.*//" -e "s/[^=]$/& /" -e "s/^--matplotlib=$//" -e "s/^--profile=$/--profile /" -e "$ s/^/\n-h\n--help\n--help-all\n/") __ipython_complete_last="$url $var" __ipython_complete_last_res="$opts" }