From 7b9471ca49a7e3f82ca3fff0533fc76d6d70ba0d Mon Sep 17 00:00:00 2001 From: Jingbei Li Date: Fri, 10 Jul 2015 00:49:35 +0800 Subject: [PATCH] fixed completion for bash --- shell/pinyin-comp.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/pinyin-comp.bash b/shell/pinyin-comp.bash index f05b6f1..8281e43 100644 --- a/shell/pinyin-comp.bash +++ b/shell/pinyin-comp.bash @@ -25,7 +25,7 @@ if [[ "$1" != -d ]]; then } )) fi - chs=($(chsdir "x$1" "$cur")) + chs=($(pinyin-comp "x$1" "$cur")) COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" "${chs[@]}" ) } @@ -64,7 +64,7 @@ _filedir_xspec() } )) - chs=($(chsdir "x$1" "$cur")) + chs=($(pinyin-comp "x$1" "$cur")) COMPREPLY=( "${toks[@]}" "${chs[@]}" ) }