diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 19:45:04 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 19:45:04 +0100 |
commit | ce23c7053355aa3bdae387959eeeb2a67ced2ad3 (patch) | |
tree | 7e24da56c4f16c4cc9f05ac1fd02ce42e3d117a2 | |
parent | 89ff917d6ef607892e02b9e5bf7f354bbeb7407a (diff) |
Don't autocomplete on 'insert'.
-rw-r--r-- | bash-completion.sh | 4 |
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") |