This commit is contained in:
Dan Buch 2019-05-13 09:45:12 -04:00
parent c8c46767e9
commit 214892bfdd
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 18 additions and 5 deletions

1
vimrc
View File

@ -23,6 +23,7 @@ set tabstop=4
set textwidth=67
au BufRead,BufNewFile *.gcfg setfiletype gitconfig
au QuickFixCmdPost *grep* cwindow
map ,t :w<CR>
map ,- :nohl<CR>

22
zshrc
View File

@ -1,3 +1,5 @@
[[ "${ZSH_DEBUG}" ]] && set -o xtrace
ZSH=$HOME/.oh-my-zsh
ZSH_THEME=dracula
@ -117,8 +119,10 @@ if [[ -f ~/.cargo/env ]]; then
source ~/.cargo/env
fi
eval "$(gimme '1.11.1')" 2>/dev/null
export GOPATH="$HOME/go"
if gimme --version &>/dev/null; then
eval "$(gimme '1.12.x')" 2>/dev/null
export GOPATH="$HOME/go"
fi
CDPATH="$HOME/code:$HOME/src:$HOME/Development/src:$HOME/repos"
for prefix in github.com github.com/meatballhat code.google.com/p ; do
@ -145,7 +149,11 @@ function start-ssh-agent() {
function __maybesource() {
if [[ -f "${1}" ]]; then
source "${1}"
if [[ "${2}" == silent ]]; then
source "${1}" &>/dev/null
else
source "${1}"
fi
fi
}
@ -154,12 +162,16 @@ load-ssh-agent &>/dev/null
__maybesource ~/.zshenv
__maybesource ~/google-cloud-sdk/path.zsh.inc
__maybesource ~/google-cloud-sdk/completion.zsh.inc
__maybesource /usr/share/nvm/init-nvm.sh
__maybesource /usr/local/opt/nvm/nvm.sh
__maybesource /usr/share/nvm/init-nvm.sh silent
__maybesource /usr/local/opt/nvm/nvm.sh silent
__maybesource ~/.kiex/scripts/kiex
if [[ -f ~/perl5/lib/perl5/local/lib.pm ]]; then
eval "$(perl -I ~/perl5/lib/perl5 '-Mlocal::lib')"
fi
if nvm &>/dev/null; then
nvm use --delete-prefix lts/dubnium --silent
fi
true