diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-23 11:36:50 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-04-23 11:36:50 +0900 |
commit | c3aa836ec0efb6d592598c6fdf3d9da66e28d388 (patch) | |
tree | ce282e40a7d0e17f2eef560cfabb13689279143b /shell | |
parent | 95764bef6fe954f7ac30269ea457da8cc17f1e56 (diff) | |
parent | e2401350a367fbfcd52852ec3c76109fa831016a (diff) |
[bash] Update completion.bash
[bash] Update completion.bash
Diffstat (limited to 'shell')
-rw-r--r-- | shell/completion.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index 9005af70..66fac61d 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -272,14 +272,15 @@ if type _completion_loader > /dev/null 2>&1; then fi _fzf_defc() { - local cmd func opts orig_var orig + local cmd func opts orig_var orig def cmd="$1" func="$2" opts="$3" orig_var="_fzf_orig_completion_$cmd" orig="${!orig_var}" if [ -n "$orig" ]; then - eval "$(printf "$orig" "$func")" + printf -v def "$orig" "$func" + eval "$def" else complete -F "$func" $opts "$cmd" fi |