Skip to content

Instantly share code, notes, and snippets.

@jeremysu0131
Last active January 9, 2020 02:58
Show Gist options
  • Save jeremysu0131/b0e86ae7b2903dfbbd21a48e9c828f36 to your computer and use it in GitHub Desktop.
Save jeremysu0131/b0e86ae7b2903dfbbd21a48e9c828f36 to your computer and use it in GitHub Desktop.
# Before using this file, install antigen first https://github.com/zsh-users/antigen
# Source antigen first
source /usr/local/share/antigen/antigen.zsh
# This set dircolors
# Remove the following setting if you want to use this in Linux
# export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
# export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export TERM="xterm-256color"
# eval $(gdircolors $HOME/.dir_colors/dircolors.256dark)
# Install Powerlevel9K theme
POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
# Powerlevel9k settings
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_CONTEXT_TEMPLATE="%n"
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user dir vcs dir_writable)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status ssh ram time)
POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%b%f%k%F{blue}%} %{%f%}"
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle autojump
antigen bundle colored-man-pages
antigen bundle colorize
antigen bundle docker
antigen bundle docker-compose
antigen bundle git
antigen bundle git-flow
antigen bundle node
antigen bundle npm
antigen bundle sudo
antigen bundle tmux
# Import zsh plugins
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme
antigen theme bhilburn/powerlevel9k powerlevel9k
# Tell Antigen that you're done.
antigen apply
# Setting node js
export PATH="/usr/local/opt/node@12/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/node@12/lib"
export CPPFLAGS="-I/usr/local/opt/node@12/include"
# Homebrew
antigen autojump macvim python telnet zsh git tmux node
# Homebrew Cask
alfred firefox spotify wechat
calibre font-hack-nerd-font mysqlworkbench telegram
docker google-chrome visual-studio-code
dotnet-sdk iterm2 postman vlc
eclipse-jee karabiner-elements sourcetree vmware-remote-console
"Before using this file, install .vimrc first https://github.com/amix/vimrc
"Plugins to install:
"onedark.vim
"vim-easymotion
"Set theme
syntax on
colorscheme onedark
let g:lightline = { 'colorscheme': 'onedark',
\ 'active': {
\ 'left': [ ['mode', 'paste'],
\ ['fugitive', 'readonly', 'filename', 'modified'] ],
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
\ },
\ 'component': {
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
\ },
\ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ },
\ 'separator': { 'left': ' ', 'right': ' ' },
\ 'subseparator': { 'left': ' ', 'right': ' ' }
\ }
let g:NERDTreeWinPos = "left"
set number
" Set lightline
set noshowmode
"Set Folding
set foldlevelstart=99 "start file with all folds opened
:imap jj <Esc>
# https://github.com/gpakosz/.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment