Skip to content

Instantly share code, notes, and snippets.

@dropocol
Forked from aaabramov/install.sh
Last active May 9, 2022 08:57
Show Gist options
  • Save dropocol/c866a72c110aeb9ba84c1a8d1dd33267 to your computer and use it in GitHub Desktop.
Save dropocol/c866a72c110aeb9ba84c1a8d1dd33267 to your computer and use it in GitHub Desktop.

Revisions

  1. dropocol renamed this gist May 9, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @aaabramov aaabramov revised this gist Nov 25, 2021. No changes.
  3. @aaabramov aaabramov revised this gist Nov 25, 2021. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    # Prepared in the scope of posting https://aaabramov.medium.com/installing-zsh-oh-my-zsh-on-amazon-ec2-amazon-linux-2-ami-88b5fc83109

    sudo yum update

    # Installing ZSH
  4. @aaabramov aaabramov revised this gist Nov 25, 2021. No changes.
  5. @aaabramov aaabramov revised this gist Nov 25, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Prepared in the scope of posting https://aaabramov.medium.com/installing-zsh-oh-my-zsh-on-amazon-ec2-amazon-linux-2-ami-88b5fc83109

    sudo yum update

    # Installing ZSH
  6. @aaabramov aaabramov revised this gist Apr 14, 2021. 1 changed file with 16 additions and 4 deletions.
    20 changes: 16 additions & 4 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -6,12 +6,24 @@ sudo yum -y install zsh
    # Check ZSH has been installed
    zsh --version

    # Install util-linux-user because chsh is not available by default
    # Install "util-linux-user" because "chsh" is not available by default
    # See https://superuser.com/a/1389273/599050
    sudo yum install util-linux-user

    # Change default shell for current user, most of the times it would be ec2-user
    # Or use sudo chsh -s $(which zsh) $(whoami) to be sure
    # Change default shell for current user, most of the times it would be "ec2-user"
    # Or use "sudo chsh -s $(which zsh) $(whoami)" to be sure
    chsh -s "$(which zsh)"

    # Install oh-my-zsh from https://github.com/ohmyzsh/ohmyzsh#basic-installation
    # Install oh-my-zsh from https://github.com/ohmyzsh/ohmyzsh#basic-installation

    # OPTIONAL

    # I recommend you to install the following plugins which make your life easier and more colorful

    # Assuming you have git installed
    # If not, simply do "sudo yum install git -y"
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    # And then add them to "~/.zshrc" file
    plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
  7. @aaabramov aaabramov created this gist Apr 14, 2021.
    17 changes: 17 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    sudo yum update

    # Installing ZSH
    sudo yum -y install zsh

    # Check ZSH has been installed
    zsh --version

    # Install util-linux-user because chsh is not available by default
    # See https://superuser.com/a/1389273/599050
    sudo yum install util-linux-user

    # Change default shell for current user, most of the times it would be ec2-user
    # Or use sudo chsh -s $(which zsh) $(whoami) to be sure
    chsh -s "$(which zsh)"

    # Install oh-my-zsh from https://github.com/ohmyzsh/ohmyzsh#basic-installation