Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Last active July 11, 2022 02:44
Show Gist options
  • Save kidpollo/f4b51d909fb5bfe3b998a137c80d2b60 to your computer and use it in GitHub Desktop.
Save kidpollo/f4b51d909fb5bfe3b998a137c80d2b60 to your computer and use it in GitHub Desktop.
osx bootstrap
#!/bin/bash -ex
# intall Xcode :( Just for the stupid --with-override-system-vim option
# install open gpg (I preffer the grafical client but comes with command line client) https://gpgtools.org/
# Install iterm 2 https://www.iterm2.com/
#install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# the basic shit
brew install macvim --with-override-system-vim # requires xcode to override system vim
brew link macvim # remember todo :vundleUpdate/instal
brew install git
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
brew tap universal-ctags/universal-ctags
brew install --HEAD universal-ctags
brew install global
# emacs
brew tap d12frosted/emacs-plus
brew install emacs-plus
ln -s /usr/local/opt/emacs-plus/Emacs.app /Applications
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
# java
brew cask install java
brew install maven
# rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
# nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
# gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
# cool dev fonts
cd
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
cd ..
rm -rf fonts
# homeshick dotfiles
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
homeshick clone robbyrussell/oh-my-zsh
cd; ln -s .homesick/repos/oh-my-zsh .oh-my-zsh
homeshick clone https://github.com/kidpollo/pdotfiles #with temp pass
brew install git-crypt
homeshick cd pdotfiles # do not symlink
git-crypt unlock
homeshick link pdotfiles
homeshick clone [email protected]:kidpollo/VimEnv.git
homeshick clone [email protected]:kidpollo/dotties.git
#fix permissions
cd
chmod 700 .ssh
chmod 600 .ssh/*
chmod 600 ~/.ssh/config
# set default zsh
chsh -s $(which zsh)
# tell iTerm that its settings are in ~/.homesick/repos/dotfiles/home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment