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 25, 2024
1 parent 047833d commit 2212e13
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
### INSTALL COMMAND
### /bin/bash -c "$(curl -fsSL https://coinguy.io/install.sh)"

# Check for root/sudo permissions
# Check for root/sudo permissions (if needed)
# if [ "$EUID" -ne 0 ]
# then echo "Please run as root or use sudo"
# exit
# fi

# Install Oh my ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Oh My Zsh without launching a new shell
RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Install plugins
# autosuggesions plugin
# autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# zsh-syntax-highlighting plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Expand All @@ -37,3 +37,6 @@ 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

0 comments on commit 2212e13

Please sign in to comment.