improve install script
This commit is contained in:
+3
-2
@@ -142,8 +142,8 @@ set_up_nvim() {
|
|||||||
echo "set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
echo "set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||||
let &packpath=&runtimepath
|
let &packpath=&runtimepath
|
||||||
source ~/.vimrc" > $nvim_config
|
source ~/.vimrc" > $nvim_config
|
||||||
|
success "neovim config setup successed"
|
||||||
fi
|
fi
|
||||||
success "neovim config setup successed"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_up_tmux() {
|
set_up_tmux() {
|
||||||
@@ -184,7 +184,6 @@ set_up_bash_tool(){
|
|||||||
source_cmd2="source ~/.$app_name/bash_tools.sh"
|
source_cmd2="source ~/.$app_name/bash_tools.sh"
|
||||||
if program_exists "zsh"; then
|
if program_exists "zsh"; then
|
||||||
# if not already contain source command
|
# if not already contain source command
|
||||||
echo $source_cmd
|
|
||||||
file_contains "$source_cmd" ~/.zshrc
|
file_contains "$source_cmd" ~/.zshrc
|
||||||
status_code=$?
|
status_code=$?
|
||||||
if [ "$status_code" != '0' ]; then
|
if [ "$status_code" != '0' ]; then
|
||||||
@@ -200,6 +199,7 @@ set_up_bash_tool(){
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
success "bash tool is sourced in zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if program_exists "bash"; then
|
if program_exists "bash"; then
|
||||||
@@ -219,6 +219,7 @@ set_up_bash_tool(){
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
success "bash tool is sourced in bash"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user