aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion.sh')
-rw-r--r--bash-completion.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash-completion.sh b/bash-completion.sh
index 34ed969..81bee51 100644
--- a/bash-completion.sh
+++ b/bash-completion.sh
@@ -55,7 +55,9 @@ _icevault() {
[ $(($OPTIND + 1)) -lt $cword ] && return
local trim=
- if [ -z "$cur" -a $OPTIND -eq $cword ] || [ -z "$cur" -a $(($OPTIND + 1)) -eq $cword -a "${words[OPTIND]}" = fill ]; then
+ if [ -z "$cur" -a $(($OPTIND + 1)) -eq $cword -a "${words[OPTIND]}" = insert ]; then
+ return
+ elif [ -z "$cur" -a $OPTIND -eq $cword ] || [ -z "$cur" -a $(($OPTIND + 1)) -eq $cword -a "${words[OPTIND]}" = fill ]; then
cur="$(./icevault _geturi)"/ # get URI from webpage
else
cur=$(dequote "$cur")