Skip to content

Instantly share code, notes, and snippets.

@eltonlaw
Last active March 30, 2019 18:13
Show Gist options
  • Save eltonlaw/aadb6eb8680fc0ede92db8ea363f2077 to your computer and use it in GitHub Desktop.
Save eltonlaw/aadb6eb8680fc0ede92db8ea363f2077 to your computer and use it in GitHub Desktop.
Setup configuration for MacOS
mkdir ~/.vim-tmp # custom vim .swp trash can
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Setup dev environment
brew install wget
# Download config files
wget -P ~/ https://gist.githubusercontent.com/eltonlaw/13259a65f4ea0a85a74cfc2d03fad29c/raw/.bash_profile
wget -P ~/ https://gist.githubusercontent.com/eltonlaw/0d054ae3b49ef0239a571ed1a8961f3c/raw/.tmux.conf
wget -P ~/ https://gist.githubusercontent.com/eltonlaw/2639f5001ba6476c6f86130c83cffca1/raw/.pylintrc
wget -P ~/ https://gist.githubusercontent.com/eltonlaw/dce719d9f7e665cd6a01d609a52ef7a2/raw/.vimrc
wget -P ~/ https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/terminal/Chalkboard.terminal
# Install python3
brew install python3
python3.6 -m pip install --upgrade pip
python3.6 -m pip install numpy
python3.6 -m pip install scipy
python3.6 -m pip install pandas
# SETUP .tmux.conf
brew install tmux
brew install reattach-to-user-namespace
mkdir -p ~/.tmux
git clone https://github.com/tmux-plugins/tmux-sensible.git ~/.tmux/tmux-sensible
git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/tpm
# SETUP VIM
mkdir -p ~/.vim/autoload/
mkdir -p ~/.vim/bundle/
mkdir -p ~/.vim/ftplugin/
mkdir -p ~/.vim/ftdetect/
mkdir -p ~/.vim/plugin
wget -O ~/.vim/ftdetect/mkd.vim https://gist.githubusercontent.com/eltonlaw/7b6fc1e6ac947c083a50aee1cdaef3e7/raw/mkd_ftdetect.vim
wget -O ~/.vim/ftplugin/html.vim https://gist.githubusercontent.com/eltonlaw/fb148fd053f2edfced1e6c35ff19673b/raw/html.vim
wget -O ~/.vim/ftplugin/mkd.vim https://gist.githubusercontent.com/eltonlaw/256dbb71a549846505e70bf720ac2feb/raw/mkd.vim
wget -O ~/.vim/ftplugin/tex.vim https://gist.githubusercontent.com/eltonlaw/b2c4ae46a6ebecfed1769996773f93c4/raw/tex.vim
wget -O ~/.vim/ftplugin/python.vim https://gist.githubusercontent.com/eltonlaw/8e65cf7ddd6a9a4a47b48a45a8b66055/raw/python.vim
wget -O ~/.vim/ftplugin/clojure.vim https://gist.github.com/eltonlaw/a8db161663c34b2cc791427e9545a8e0/raw/clojure.vim
# Download pathogen to ~/.vim/autoload
wget -P ~/.vim/autoload https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
# Download plugins to ~/.vim/bundle
cd ~/.vim/bundle
## General
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/tpope/vim-fugitive.git
vim -u NONE -c "helptags vim-fugitive/doc" -c q # For vim-fugitive
git clone https://github.com/flazz/vim-colorschemes.git
git clone https://github.com/benmills/vimux.git
git clone https://github.com/tpope/vim-sensible.git ~/.vim/bundle/vim-sensible
git clone https://github.com/kien/ctrlp.vim.git
git clone https://github.com/vim-syntastic/syntastic.git
### Rust
git clone --depth=1 https://github.com/rust-lang/rust.vim.git
## Markdown
git clone https://github.com/plasticboy/vim-markdown.git ~/.vim/bundle/vim-markdown
git clone https://github.com/reedes/vim-pencil.git ~/.vim/bundle/vim-pencil
git clone https://github.com/junegunn/goyo.vim.git ~/.vim/bundle/goyo.vim
## Clojure
git clone https://github.com/bhurlow/vim-parinfer.git ~/.vim/bundle/vim-parinfer
git clone git://github.com/tpope/vim-classpath.git ~/.vim/bundle/vim-classpath
git clone https://github.com/luochen1990/rainbow.git
## Clojure dependencies
brew install clojure
brew install leiningen
brew install boot-clj
git clone https://github.com/luochen1990/rainbow.git
cd rainbow
cp plugin/* ~/.vim/plugin
cp autoload/* ~/.vim/autoload
cd ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment