what-terminal-is-felix-using
what-terminal-is-felix-using copied to clipboard
Add install script
Here is the terminal part from my personal mac install script:
REAL_PATH="$(readlink "${BASH_SOURCE}")"
cd -P "$(dirname "${REAL_PATH}")"
link_to() {
if [ ! -e "$2" ]; then
if [ ! -e "$1" ]; then
printf "\nWARNING: cannot link $1 because it does not exist\n"
else
sudo ln -s "$1" "$2"
printf "\nLinked $2"
fi
fi
}
link_dotfile() {
link_to $(pwd)/$1 ~/.$1
}
link_to $(pwd)/com.googlecode.iterm2.plist ~/Library/Preferences/com.googlecode.iterm2.plist
if ! command -v brew > /dev/null 2>&1; then
printf "\n### Installing Brew\n"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off
fi
brew install zsh
if ! [ $(ls /Applications/iTerm.app 2>/dev/null) ]; then
brew cask reinstall iterm2
sh -c "env() {
echo 'Dont want to stop installing by changing the environment to zsh'
}
$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
rm ~/.zshrc
link_dotfile zshrc
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
fi
If I remember correctly, the only change in the iterm plist is the color and font.