Skip to content

Instantly share code, notes, and snippets.

@Swalloow
Created August 31, 2019 15:29
Show Gist options
  • Save Swalloow/3079940361409c3e7390323c68a0e57b to your computer and use it in GitHub Desktop.
Save Swalloow/3079940361409c3e7390323c68a0e57b to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir ~/Documents/Notebook
mkdir ~/Documents/GitHub
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install zsh-completions
chsh -s `which zsh`
# powerlevel9k theme
# add ZSH_THEME="powerlevel9k/powerlevel9k"
# change powerline fonts in iTerm2 (D2 Coding)
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# zsh-syntax-highlighting 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 git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# add into ~/.zshrc file
# plugins=(
# git
# pyenv
# zsh-syntax-highlighting
# zsh-autosuggestions
# )
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status pyenv time)
brew install fzf fasd tree jq wget vim
$(brew --prefix)/opt/fzf/install
# install pyenv
brew install pyenv pyenv-virtualenv
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
source ~/.zshrc
# install node, typescript
brew install node --without-npm
curl -L https://www.npmjs.com/install.sh | sh
npm install -g typescript webpack eslint pm2
# install vim theme
mkdir .vim/bundle && cd .vim/bundle
git clone https://github.com/altercation/vim-colors-solarized.git
# edit ~/.vimrc
set rtp+=~/.vim/bundle/vim-colors-solarized
syntax enable
set bg=dark
set t_Co=256
set encoding=utf-8
colorscheme solarized
set nu
set bs=2
set autoindent
set cindent
set tabstop=4
set shiftwidth=4
set expandtab
set showmode
set showcmd
set laststatus=2
set clipboard=unnamed
set mouse+=a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment