Skip to content

Instantly share code, notes, and snippets.

@tavallaie
Created July 28, 2019 07:41
Show Gist options
  • Save tavallaie/bdbb5cbfa3f20283b40617c6927214c6 to your computer and use it in GitHub Desktop.
Save tavallaie/bdbb5cbfa3f20283b40617c6927214c6 to your computer and use it in GitHub Desktop.
#!/bin/bash
##### installing homebrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)";
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv);
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv);
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile;
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile;
# installing zsh and oh-my-zsh
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended
# make zsh defualt
echo "export SHELL=`which zsh`" >> .profile
echo '[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l'>>.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment