Clean up rc files & allow local versions

This commit is contained in:
Andrew Miner
2017-07-31 10:00:42 -07:00
parent 3a56f5e178
commit 22c8a5d877
2 changed files with 13 additions and 19 deletions
+3 -19
View File
@@ -1,25 +1,9 @@
export EDITOR=vi export EDITOR=vi
export PS1='[\h:\w]\$ ' export PS1='[\h:\w]\$ '
export PATH=~/bin:~/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin:/sbin
export RAILS_ENV='development' export PATH=$PATH:$HOME/bin:$HOME/node_modules/.bin
alias l='ls -Ghl' alias l='ls -Ghl'
alias la='ls -aGhl' alias la='ls -aGhl'
function count { [[ -e "$HOME/.profile.local" ]] && source $HOME/.profile.local
find . -name "*.$1" | grep -v "node_modules" | xargs cat | grep -v '^$' | grep -v '^#' | wc -l
}
ssh-add ~/.ssh/id_rsa_andrewminer &>/dev/null
eval "$(rbenv init -)"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
defaults write com.macromates.TextMate.preview volumeSettings '{ "/" = { extendedAttributes = 0; }; }'
if [[ -e "~/.profile.local" ]]; then
source ~/.profile.local
fi
+10
View File
@@ -69,6 +69,7 @@ endif
" ctrlpvim/ctrlp.vim " ctrlpvim/ctrlp.vim
let g:ctrlp_working_path_mode = 0 let g:ctrlp_working_path_mode = 0
let g:ctrlp_regexp = 1
if executable('ag') if executable('ag')
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0
@@ -90,6 +91,15 @@ let g:indent_guides_enable_on_vim_startup = 0 " :IndentGuidesToggle
map <F1> :NERDTreeToggle<CR> map <F1> :NERDTreeToggle<CR>
map <F2> :NERDTreeFind<CR> map <F2> :NERDTreeFind<CR>
map <F3> :'a,.!sort<CR> map <F3> :'a,.!sort<CR>
map <F4> :IndentGuidesToggle<CR>
map <F5> :e<CR>
map <F6> :set hlsearch!<CR>
map <F7> :cp<CR> map <F7> :cp<CR>
map <F8> :copen<CR> map <F8> :copen<CR>
map <F9> :cn<CR> map <F9> :cn<CR>
" Local Overrides ######################################################################################################
if !empty(glob("$HOME/.vimrc.local"))
source $HOME/.vimrc.local
endif