2016-12-12 04:52:38 +00:00
|
|
|
platform=`uname -s`
|
|
|
|
kernel_release=`uname -r`
|
2016-04-14 13:34:42 +00:00
|
|
|
|
2017-05-02 22:00:39 +00:00
|
|
|
test -f ~/.private-dotfiles/env && . ~/.private-dotfiles/env
|
|
|
|
test -f ~/.env.platform && . ~/.env.platform
|
|
|
|
|
2015-11-17 05:26:42 +00:00
|
|
|
# Unbreak broken, non-colored terminal
|
|
|
|
export TERM=xterm-256color
|
|
|
|
|
|
|
|
# Use vim as the editor
|
|
|
|
export EDITOR=vim
|
|
|
|
|
2017-11-21 02:39:58 +00:00
|
|
|
# Homebrew setup
|
|
|
|
export HOMEBREW_NO_ANALYTICS=1
|
|
|
|
export HOMEBREW_NO_INSECURE_REDIRECT=1
|
|
|
|
export HOMEBREW_CASK_OPTS=--require-sha
|
|
|
|
|
2015-11-17 05:26:42 +00:00
|
|
|
# Grep tweaks
|
2015-12-06 05:14:43 +00:00
|
|
|
export GREP_OPTIONS="-nRi --color --exclude-dir=.git --exclude-dir=tmp --exclude-dir=log --exclude-dir=node_modules --exclude-dir=bower_components --exclude-dir=coverage --exclude-dir=.bundle --exclude=*.csv --exclude=*.pdf --exclude-dir=vendor --exclude-dir=rdoc --exclude-dir=target --exclude-dir=personal --exclude-dir=resources/public/js/*.*" # --exclude-dir=images --exclude-dir=coverage
|
2015-11-17 05:26:42 +00:00
|
|
|
|
|
|
|
export RBENV_PATH="$HOME/.rbenv"
|
|
|
|
|
|
|
|
export LEIN_FAST_TRAMPOLINE=y
|
|
|
|
|
2016-04-14 13:34:42 +00:00
|
|
|
if [[ $platform == 'Linux' ]]; then
|
|
|
|
export LD_LIBRARY_PATH="/usr/lib/jvm/java-8-openjdk/jre/lib/amd64"
|
2016-10-23 16:46:49 +00:00
|
|
|
export LOLCOMMITS_ANIMATE=4
|
|
|
|
export LOLCOMMITS_FORK=true
|
|
|
|
export LOLCOMMITS_STEALTH=true
|
2016-12-12 04:52:38 +00:00
|
|
|
export LOLCOMMITS_DIR="/shared/Dev/lolcommits"
|
2016-04-14 13:34:42 +00:00
|
|
|
fi
|
|
|
|
|
2017-05-02 22:00:39 +00:00
|
|
|
path=($HOME/bin $HOME/.dotfiles/bin ${RBENV_PATH}/bin $HOME/.vim/scripts $path)
|
2015-11-17 05:26:42 +00:00
|
|
|
|
2017-03-09 02:57:04 +00:00
|
|
|
if [[ $platform == 'Darwin' ]]; then
|
2017-05-01 08:57:19 +00:00
|
|
|
test -f $HOME/.cargo && source $HOME/.cargo/env
|
|
|
|
# TODO: test for qt
|
2017-05-02 22:00:39 +00:00
|
|
|
if [ -d "$HOME/Qt" ]; then
|
|
|
|
path=($HOME/Qt/5.8/clang_64/bin $path)
|
|
|
|
fi
|
2017-03-09 02:57:04 +00:00
|
|
|
fi
|
|
|
|
|
2017-05-01 08:57:19 +00:00
|
|
|
if [ -d "$HOME/.rbenv" ]; then
|
|
|
|
# Start rbenv
|
|
|
|
eval "$(rbenv init -)"
|
|
|
|
fi
|
2016-10-23 16:46:17 +00:00
|
|
|
|
2016-12-12 04:52:38 +00:00
|
|
|
# Start the SSH agent
|
2016-10-23 16:46:17 +00:00
|
|
|
eval "$(ssh-agent -s)" > /dev/null
|