Put all theme names in ~/.rimetheme_args and then press Tab:

export RIME_DIR="$HOME/Library/Rime"
alias rime-install="bash $RIME_DIR/plum/rime-install"
theme_file="$RIME_DIR/squirrel.custom.yaml"
function rimetheme(){
theme=" style/color_scheme: $1 # 配色方案"
scheme_line=`awk '/color_scheme:/{print NR}' ${theme_file}`
gsed -i "${scheme_line}c\ ${theme}" ${theme_file}
echo "更新配色方案: $1"
Squirrel --reload
}
_rimetheme()
{
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(grep "$cur" ~/.rimetheme_args) )
}
complete -F _rimetheme rimetheme
alias rt=rimetheme
Put all theme names in
~/.rimetheme_argsand then press Tab: