From 86b7c6c0fa59ae330bb2b9f7d12d81c6bd62661f Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 21 May 2022 01:55:53 +0800 Subject: [PATCH] minor color fixes in install.sh --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 2904d03..810f4bd 100755 --- a/install.sh +++ b/install.sh @@ -187,14 +187,14 @@ install_tmux_tpm(){ TMUX_TPM="$HOME/.tmux/plugins/tpm" command -v tmux > /dev/null 2>&1 if [[ $? == 0 && ! -d "$TMUX_TPM" ]]; then - echo "installing tmux tpm ..." + fmt_note "installing tmux tpm ..." git clone https://hub.fastgit.xyz/tmux-plugins/tpm "$TMUX_TPM" command -v g++ > /dev/null 2>&1 if [[ $? == 0 ]]; then - echo "initializing tmux plugins ..." + fmt_note "initializing tmux plugins ..." ~/.tmux/plugins/tpm/bin/install_plugins else - echo "pls install g++ and init tmux plugins by " + fmt_warning "pls install g++ and init tmux plugins by " fi fi } @@ -203,9 +203,9 @@ install_vim_vundle(){ VIM_VUNDLE="$HOME/.vim/bundle/Vundle.vim" command -v vim > /dev/null 2>&1 if [[ $? == 0 && ! -d "$VIM_VUNDLE" ]]; then - echo "installing vim vundle ..." + fmt_note "installing vim vundle ..." git clone https://hub.fastgit.xyz/gmarik/Vundle.vim.git "$VIM_VUNDLE" - echo "initializing vim plugins ..." + fmt_note "initializing vim plugins ..." vim +PluginInstall +qall fi } @@ -238,5 +238,5 @@ setup_color case $1 in ""|-i ) install ;; -r ) uninstall ;; - * ) echo "unknown command \"$1\". available: -i, -r" ;; + * ) fmt_warning "unknown command \"$1\". available: -i, -r" ;; esac