Set tabs for js templates, added OSX lock and some TODOs

This commit is contained in:
Josh Sherman 2016-09-12 12:18:43 -05:00
parent 834de21d61
commit f610098e7c
2 changed files with 7 additions and 1 deletions

View file

@ -50,7 +50,7 @@ autocmd BufNewFile,BufRead nginx.conf set filetype=nginx
autocmd BufNewFile,BufRead *.mustache,*.hogan,*.hulk,*.hjs set filetype=html.mustache syntax=mustache
autocmd BufNewFile,BufRead *.handlebars,*.hbs set filetype=html.handlebars syntax=mustache
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2 softtabstop=2
autocmd FileType javascript,dustjs,handlebars setlocal tabstop=2 shiftwidth=2 softtabstop=2
" Automatically wraps markdown and text to 80 columns
if &filetype == 'markdown' || &filetype == 'text'

View file

@ -16,6 +16,9 @@ antigen-bundle git
if [[ $OSTYPE == "darwin*" ]]; then
antigen-bundle osx
# Lock it up
alias lock="pmset displaysleepnow"
# Unquarantine files on OSX
alias unquarantine="xattr -r -d com.apple.quarantine *"
fi
@ -74,11 +77,14 @@ export NODE_ENV=development
# [ -z "$TMUX" ] && export TERM=xterm-256color && exec tmux
# Need to run this conditionally based on the tmux environment
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
# Need to run this conditionally on OSX
source "`brew --prefix`/etc/grc.bashrc"
# Need to run this conditionally based on the environment (I think OSX specific)
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# Because `npm` shit the bed on me...