Created
August 31, 2019 15:29
-
-
Save Swalloow/3079940361409c3e7390323c68a0e57b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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