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
# Install iterm 2 https://www.iterm2.com/
# Install 1password
#install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/paks/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# packages
brew install git git-crypt gpg autojump kube-ps1 stern asdf rlwrap rg
# homeshick dotfiles
git clone https://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
touch .profile #in case it does not exist
# get keys from 1Password
cd
gpg --import Downloads/kidpollo-public-gpg.key
gpg --import Downloads/kidpollo-secret-gpg.key
homeshick clone https://github.com/kidpollo/pdotfiles #with token from 1password # do not symlink
homeshick cd pdotfiles
git-crypt unlock
homeshick link pdotfiles
#emacs
brew install languagetool
brew install --build-from-source emacs-plus@29 --with-native-comp --with-no-frame-refocus --with-imagemagick
# spacemacs
git clone --branch develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
# setup vim
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --ts-completer --rust-completer --java-completer --clangd-completer
#fix permissions
cd
chmod 700 .ssh
chmod 600 .ssh/*
chmod 600 ~/.ssh/config
homeshick clone git@github.com:kidpollo/VimEnv.git
homeshick clone git@github.com:kidpollo/dotties.git
# set default zsh
chsh -s $(which zsh)
# tell iTerm that its settings are in ~/.homesick/repos/dotfiles/home
# languages
asdf plugin-add java https://github.com/halcyon/asdf-java.git
asdf intall java adoptopenjdk-17.0.0+35
asdf global java adoptopenjdk-17.0.0+35
asdf plugin add clojure https://github.com/asdf-community/asdf-clojure.git
asdf install clojure latest
asdf global clojure 1.11.1.1107
# nerdfonts
cd; cd code
git clone --depth 1 git@github.com:ryanoasis/nerd-fonts.git
cd nerd-fonts
./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment