-
-
Save elgehelge/2e35b16baff5aa3abb5a769f75badf59 to your computer and use it in GitHub Desktop.
Install most of my apps with homebrew & cask
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/sh | |
# Next time I find myself running this, it is time to upgrade and get some inspiration: https://medium.com/@webprolific/getting-started-with-dotfiles-43c3602fd789 | |
# Show hidden files | |
defaults write com.apple.finder AppleShowAllFiles YES | |
# Homebrew (cask included) | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Terminal (iTerm2) | |
brew install --cask --appdir="/Applications" iterm2 | |
echo "Add these Shortcut Keys to iTerm2 (btw. use Profile > Keys):" | |
echo "https://stackoverflow.com/questions/6205157/iterm-2-how-to-set-keyboard-shortcuts-to-jump-to-beginning-end-of-line/22312856#22312856" | |
echo "or" | |
echo "Presets > Natural Text Editing" | |
echo "end making seletction work:" | |
echo "https://stackoverflow.com/questions/30055402/how-to-select-text-in-iterm-with-shiftarrow/46905994#46905994" | |
read -p "Press any key to continue... " -n1 -s | |
echo "\n" | |
## Shell (zsh) | |
### Plugins | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
echo '\n\n\n' >> ~/.zshrc | |
echo '# --------' >> ~/.zshrc | |
echo '# MY STUFF' >> ~/.zshrc | |
echo '# --------' >> ~/.zshrc | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
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-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search | |
echo 'source zsh-autosuggestions.zsh' >> ~/.zshrc | |
echo 'source zsh-history-substring-search.zsh # after syntax highligting' >> ~/.zshrc | |
echo 'source zsh-syntax-highlighting.zsh # says it want to be the last' >> ~/.zshrc | |
echo 'bindkey "$terminfo[kcuu1]" history-substring-search-up' >> ~/.zshrc | |
echo 'bindkey "$terminfo[kcud1]" history-substring-search-down' >> ~/.zshrc | |
### Prompt | |
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1 | |
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme" | |
echo 'ZSH_THEME="spaceship"' >> ~/.zshrc | |
### Direnv | |
brew install direnv | |
echo '# direnv' >> ~/.zshrc | |
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc | |
## Git | |
brew install git | |
brew install git-lfs | |
echo ".DS_Store" >> ~/.gitignore_global | |
git config --global core.excludesfile ~/.gitignore_global | |
git config --global core.editor "subl -n -w" | |
## Python | |
brew install python | |
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python # change default python symlink to the brew installed 3.7 | |
exec bash -l # restart shell | |
python -m ensurepip | |
#brew install pyenv | |
## Other CLI | |
brew install awscli | |
brew install tree | |
# Development applications | |
brew install --cask --appdir="/Applications" pycharm | |
brew install --cask --appdir="/Applications" sourcetree | |
brew install --cask --appdir="/Applications" sublime-text | |
brew install --cask --appdir="/Applications" docker | |
#brew install --cask --appdir="/Applications" postman | |
# Nice to have | |
brew install --cask --appdir="/Applications" vlc | |
brew install --cask --appdir="/Applications" evernote | |
brew install --cask --appdir="/Applications" spotify | |
brew install --cask --appdir="/Applications" keybase | |
brew install --cask --appdir="/Applications" skitch | |
brew install --cask --appdir="/Applications" slack | |
# Cleanup | |
brew cleanup | |
# Non-terminal setup | |
echo "Install all the ordinary apps" | |
echo "Consider:" | |
echo "* Google Chrome" | |
echo "* Google Drive" | |
echo "* Magnet" | |
echo "* Amphetamine" | |
read -p "Press any key to continue... " -n1 -s | |
echo "\n" | |
echo "Done!" | |
echo "Now restart as well." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment