diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-25 20:54:19 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-25 20:54:40 +0100 |
commit | 814877ba3d1823b048845a7b13a0a58bd4d91664 (patch) | |
tree | 0a0fca2a91c7a2cd813c87a1857787f382b04ed8 | |
parent | bc180068995181b4c633e5082dc2568431461623 (diff) |
Fix bash completion.
-rw-r--r-- | cli/bash-completion.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/bash-completion.sh b/cli/bash-completion.sh index 81bee51..bbef124 100644 --- a/cli/bash-completion.sh +++ b/cli/bash-completion.sh @@ -58,7 +58,7 @@ _icevault() { 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 + cur="$(icevault _geturi)"/ # get URI from webpage else cur=$(dequote "$cur") # trim words with : or = in $COMP_WORDBREAKS; see __ltrim_colon_completions @@ -78,7 +78,7 @@ _icevault() { # quote manually (so we don't quote the : and =) uri=$( echo "${uri#$trim}" | sed "s/[][\\{}*?~<>;'\"|&()\!$\` \t]/\\\\&/g" ) COMPREPLY+=( "$uri" ) - done < <(./icevault -0 _complete "$cur") + done < <(icevault -0 _complete "$cur") [ "${#COMPREPLY[@]}" -eq 1 -a "${COMPREPLY[0]: -1:1}" = / ] && compopt -o nospace return 0 fi |