Skip to content

Instantly share code, notes, and snippets.

@Quarezz
Last active January 10, 2020 08:26
Show Gist options
  • Select an option

  • Save Quarezz/adaeffdaa587e27eec7394877b963003 to your computer and use it in GitHub Desktop.

Select an option

Save Quarezz/adaeffdaa587e27eec7394877b963003 to your computer and use it in GitHub Desktop.
macOS bootstrap
#! /usr/bin/env
cd ~/Downloads
# RVM
if [ -d "$HOME/.rvm" ]
then
curl -sSL https://get.rvm.io | bash -s stable
fi
rvm install 2.5.5
rvm use 2.5.5
# iTerm2
brew cask install iterm2
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# powerline shell
git clone https://github.com/b-ryan/powerline-shell
cd powerline-shell
python setup.py install
echo "function powerline_precmd() {
PS1="$(powerline-shell --shell zsh $?)"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
precmd_functions+=(powerline_precmd)
}
install_powerline_precmd" >> ~/.zshrc
# meslo font
cd ~/Downloads
git clone git@github.com:powerline/fonts.git
cd Meslo\ Slashed
cp "Meslo LG M Regular for Powerline.ttf" ~/Library/Fonts
killall iTerm
# bundler
gem install bundler
# cocoapods
gem install cocoapods
# fastlane
gem install fastlane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment