Skip to content

Commit ce37f85

Browse files
committed
improved zsh and vim configs
1 parent f807c7e commit ce37f85

File tree

4 files changed

+53
-9
lines changed

4 files changed

+53
-9
lines changed

vimrc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ let g:rehash256 = 1
149149

150150
" Set colors
151151
set background=dark
152-
colorscheme gruvbox
152+
colorscheme onedark
153153

154154
" Add a more detailed theme for airline
155155
let g:airline_theme = 'tomorrow'
@@ -192,6 +192,8 @@ let g:go_fmt_command = "goimports"
192192
" Play nice with YCM
193193
" let g:UltiSnipsJumpForwardTrigger="<tab>"
194194
" let g:UltiSnipsListSnippets="<c-e>"
195+
"
196+
let g:ycm_server_python_interpreter = '/usr/local/bin/python'
195197

196198
" Use AG
197199
let g:ackprg = 'ag --nogroup --nocolor --column'
@@ -233,11 +235,18 @@ let g:is_bash=1
233235
" Vitality
234236
let g:always_assume_iterm = 0
235237

238+
let g:ale_linters = {
239+
\ 'javascript': ['standard'],
240+
\}
241+
242+
let g:ale_sign_column_always = 1
243+
let g:airline#extensions#ale#enabled = 1
244+
236245
" Enable syntastic syntax checking
237-
let g:syntastic_enable_signs = 1
246+
"let g:syntastic_enable_signs = 1
238247

239248
" Turn off jslint errors by default
240-
let g:JSLintHighlightErrorLine = 0
249+
" let g:JSLintHighlightErrorLine = 0
241250

242251
" Stop netrw
243252
let g:netrw_silent = 1

vimrc.bundles

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Plugin 'kien/ctrlp.vim'
88
Plugin 'bling/vim-airline.git'
99
Plugin 'mileszs/ack.vim'
1010
Plugin 'Raimondi/delimitMate'
11-
Plugin 'pangloss/vim-javascript'
11+
" Plugin 'pangloss/vim-javascript'
12+
Plugin 'isRuslan/vim-es6'
1213
Plugin 'tpope/vim-commentary'
13-
Plugin 'scrooloose/syntastic'
14+
" Plugin 'scrooloose/syntastic'
15+
Plugin 'w0rp/ale'
1416
Plugin 'tpope/vim-fugitive'
1517
Plugin 'godlygeek/tabular'
1618
Plugin 'tpope/vim-surround'
@@ -33,3 +35,5 @@ Plugin 'tpope/vim-sleuth'
3335
Plugin 'morhetz/gruvbox'
3436
Plugin 'mattn/emmet-vim'
3537
Plugin 'airblade/vim-gitgutter'
38+
Plugin 'joshdick/onedark.vim'
39+
Plugin 'posva/vim-vue'

zshrc

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
21
# path to oh-my-zsh installation
32
export ZSH=~/.oh-my-zsh
43

54
# set name of the theme to load
65
ZSH_THEME="powerlevel9k/powerlevel9k"
76

7+
# Power Level 9K settings
8+
# https://github.com/bhilburn/powerlevel9k#available-prompt-segments
9+
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir)
10+
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status vcs virtualenv)
11+
812
# command auto-correction
913
ENABLE_CORRECTION="true"
1014

1115
# plugins
1216
# https://github.com/robbyrussell/oh-my-zsh/wiki/plugins
13-
plugins=(brew git jsontools pip python sudo)
17+
plugins=(brew git jsontools pip python sudo virtualenv)
1418

1519
# user path
1620
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
@@ -29,4 +33,14 @@ alias vrcb='vim ~/.vimrc.bundles'
2933
alias vrcbl='vim ~/.vimrc.bundles.local'
3034

3135
# get aliases and stuff from local
32-
source ~/.zshrc.local
36+
source ~/.zshrc.local
37+
38+
# export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
39+
40+
# android sdk
41+
export ANDROID_HOME=/Users/nick/Library/Android/sdk
42+
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
43+
44+
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
45+
46+
unsetopt correct_all

zshrc.local

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1+
# plutus project
2+
alias plutus_run='cd ~/Sites/plutus/; source env/bin/activate; python run.py'
13

2-
" Put your local zsh settings here
4+
alias chrome_nocors='open -a Google\ Chrome --args --disable-web-security'
5+
6+
alias pluterrlog='tail -f ~/Sites/plutus/logs/apache_error.log'
7+
alias plutacclog='tail -f ~/Sites/plutus/logs/apache_access.log'
8+
alias plutdeflog='tail -f ~/Sites/plutus/logs/default.log'
9+
10+
alias plutus_db_drop='~/sites/plutus; mongo baseclass --eval "db.dropDatabase()"'
11+
alias plutus_db_restore='~/sites/plutus; mongorestore --dir dump/db/baseclass --db baseclass'
12+
13+
alias plutus_build='r.js -o static/js/build.js'
14+
15+
alias arestart='sudo apachectl restart'
16+
17+
alias cdp='cd ~/sites/plutus'
18+
19+
source ~/.iterm2_shell_integration.zsh

0 commit comments

Comments
 (0)