Created
July 28, 2019 07:41
-
-
Save tavallaie/bdbb5cbfa3f20283b40617c6927214c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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