MacOS clean installation setup

less than 1 minute read

Published:

Having just embarked in the thrilling adventure of a clean install of Mojave, I thought it would be nice to write it down to suffer less next time :)

So here is the listing of most of the actions necessary for setting up a new install:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install git zsh pyenv stow ctag fzf tmux bat gdb task ranger

$(brew --prefix)/opt/fzf/install

brew cask install firefox google-chrome xquartz macpass dropbox sublime-text typora

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"

ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$HOME/.oh-my-zsh/themes/spaceship.zsh-theme"

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v PYTHON3_VERSION

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v PYTHON2_VERSION

pyenv global PYTHON3_VERSION PYTHON2_VERSION

brew install pyenv-virtualenvwrapper

git clone https://github.com/ClonedOne/c1-dotfiles.git

cd c1-dotfiles && stow zsh_macos vim_macos taskwarrior zathura 

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-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

brew tap koekeishiya/formulae
brew install chunkwm
brew install koekeishiya/formulae/skhd

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

brew install macvim #need to quit session after

brew tap zegervdv/zathura

brew install zathura zathura-pdf-poppler