Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bliotti authored Sep 29, 2024
1 parent 1c7fb9f commit a21cf9e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions static/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

set -v
### INSTALL COMMAND
### /bin/bash -c "$(curl -fsSL https://coinguy.io/install.sh)"

Expand Down Expand Up @@ -86,5 +87,12 @@ plugins=(\
# Inform the user
echo "The plugins line has been updated in $ZSHRC_FILE. A backup has been created as $ZSHRC_FILE.bak."

# Source the updated .zshrc
source $ZSHRC_FILE
# Automatically change default shell to Zsh without prompting
if [ "$SHELL" != "$(which zsh)" ]; then
echo "Changing your default shell to Zsh..."
chsh -s "$(which zsh)" "$USER"
echo "Default shell changed to Zsh. Please restart your terminal or log out and log back in."
fi

# Prompt the user to switch to Zsh manually
echo "Installation complete! Please run 'zsh' to switch to Zsh and load your updated configuration."

0 comments on commit a21cf9e

Please sign in to comment.