diff options
author | Tomas Janousek <tomi@nomi.cz> | 2020-11-11 14:59:21 +0000 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-13 02:16:54 +0900 |
commit | 75b8cca3b3d0663ea4102f08c763cf2b0b999f88 (patch) | |
tree | 70e0a04593c89336ac7c353009a7c272221f88a6 | |
parent | ef2c29d5d4974cc773149d368488a6d8a0fcc1fc (diff) |
[bash-completion] Unexport _fzf_orig_completion_* variables
-rw-r--r-- | shell/completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index b8c32abe..12baaf05 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -53,7 +53,7 @@ __fzf_orig_completion() { comp="${BASH_REMATCH[1]}" f="${BASH_REMATCH[2]}" cmd="${BASH_REMATCH[3]}" - export "_fzf_orig_completion_${cmd//[^A-Za-z0-9_]/_}=${comp} %s ${cmd} #${f}" + printf -v "_fzf_orig_completion_${cmd//[^A-Za-z0-9_]/_}" "%s" "${comp} %s ${cmd} #${f}" if [[ "$l" = *" -o nospace "* ]] && [[ ! "$__fzf_nospace_commands" = *" $cmd "* ]]; then __fzf_nospace_commands="$__fzf_nospace_commands $cmd " fi |