From 814877ba3d1823b048845a7b13a0a58bd4d91664 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 25 Mar 2015 20:54:19 +0100 Subject: Fix bash completion. --- cli/bash-completion.sh | 4 ++-- 1 file 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 -- cgit v1.2.3