diff --git a/tforgione.sh b/tforgione.sh index b1df2c3..fc56c71 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -163,11 +163,23 @@ configure_dotfiles() { clone_dotfiles } -configure_zsh() { +configure_shell() { yes_no_ask "do you wish to install and configure zsh ?" if [ $? -ne 0 ]; then - info "not installing zsh" + yes_no_ask "you don't want zsh ? Ok... but can I at least give you a nice bashrc ?" + + if [ $? -ne 0 ]; then + info "ok :'( I guess I'm not doing anything then" + return + fi + + clone_dotfiles + rm -f ~/.bashrc + ln -s `realpath ~/.config/dotfiles/bashrc` `realpath ~/.bashrc` + + info "bashrc configured successfully" + return fi @@ -286,7 +298,7 @@ main() { sudo_available=$? configure_dotfiles - configure_zsh + configure_shell configure_neovim }