Skip to content

Commit

Permalink
fixed completion for bash
Browse files Browse the repository at this point in the history
  • Loading branch information
petronny committed Jul 9, 2015
1 parent 4442922 commit 7b9471c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/pinyin-comp.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [[ "$1" != -d ]]; then
}
))
fi
chs=($(chsdir "x$1" "$cur"))
chs=($(pinyin-comp "x$1" "$cur"))
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" "${chs[@]}" )
}

Expand Down Expand Up @@ -64,7 +64,7 @@ _filedir_xspec()
}
))

chs=($(chsdir "x$1" "$cur"))
chs=($(pinyin-comp "x$1" "$cur"))
COMPREPLY=( "${toks[@]}" "${chs[@]}" )
}

Expand Down

0 comments on commit 7b9471c

Please sign in to comment.