Links bashrc

This commit is contained in:
Thomas Forgione 2019-05-03 10:13:11 +02:00
parent 94e0c0b685
commit 7eda331b57
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 15 additions and 3 deletions

View File

@ -163,11 +163,23 @@ configure_dotfiles() {
clone_dotfiles clone_dotfiles
} }
configure_zsh() { configure_shell() {
yes_no_ask "do you wish to install and configure zsh ?" yes_no_ask "do you wish to install and configure zsh ?"
if [ $? -ne 0 ]; then 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 return
fi fi
@ -286,7 +298,7 @@ main() {
sudo_available=$? sudo_available=$?
configure_dotfiles configure_dotfiles
configure_zsh configure_shell
configure_neovim configure_neovim
} }