|
|
@ -1,34 +1,38 @@ |
|
|
|
|
|
|
|
source ~/.bash_profile |
|
|
|
|
|
|
|
|
|
|
|
#Portable across both mac and linux now |
|
|
|
#Portable across both mac and linux now |
|
|
|
export LC_ALL=en_US.UTF-8 |
|
|
|
export LC_ALL=en_US.UTF-8 |
|
|
|
export LANG=en_US.UTF-8 |
|
|
|
export LANG=en_US.UTF-8 |
|
|
|
|
|
|
|
|
|
|
|
# Test for clang and make it CC if found |
|
|
|
|
|
|
|
if hash clang 2>/dev/null; then |
|
|
|
|
|
|
|
export CC=/usr/bin/clang |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Test for clang++ and add it to CXX if found |
|
|
|
|
|
|
|
if hash clang++ 2>/dev/null; then |
|
|
|
|
|
|
|
export CXX=/usr/bin/clang++ |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
# Linux |
|
|
|
# Linux |
|
|
|
export VISUAL="emacs" |
|
|
|
export VISUAL="nvim" |
|
|
|
alias emacs="$VISUAL" |
|
|
|
alias vim="$VISUAL" |
|
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
# Mac OSX |
|
|
|
# Mac OSX |
|
|
|
export VISUAL="/usr/local/bin/nvim" |
|
|
|
export VISUAL="/usr/local/bin/nvim" |
|
|
|
alias vim="$VISUAL" |
|
|
|
alias vim="$VISUAL" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Give access to mono (if installed via the .pkg) early on |
|
|
|
|
|
|
|
export PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:${PATH} |
|
|
|
fi |
|
|
|
fi |
|
|
|
export EDITOR="$VISUAL" |
|
|
|
export EDITOR="$VISUAL" |
|
|
|
export ITERM_24BIT=1 |
|
|
|
export ITERM_24BIT=1 |
|
|
|
export TERM=screen-256color |
|
|
|
export TERM=xterm-256color |
|
|
|
export GOPATH=$HOME/go/ |
|
|
|
export GOPATH=$HOME/go |
|
|
|
export PATH=$PATH:"$GOPATH/bin" |
|
|
|
export GOBIN=$GOPATH/bin |
|
|
|
|
|
|
|
export PATH=$PATH:$GOBIN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: PUT THIS IN AN IF PYENV EXISTS CHECK |
|
|
|
|
|
|
|
eval "$(pyenv init -)" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Emacs needs to be setup different on Linux and Mac |
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
|
|
|
|
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs -nw' |
|
|
|
|
|
|
|
else |
|
|
|
alias emacs='emacs -nw' |
|
|
|
alias emacs='emacs -nw' |
|
|
|
alias vim='nvim' |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
alias irssi='TERM=screen-256color irssi' |
|
|
|
alias irssi='TERM=screen-256color irssi' |
|
|
|
alias scheme='rlwrap mit-scheme' |
|
|
|
alias scheme='rlwrap mit-scheme' |
|
|
|
alias startpg='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' |
|
|
|
alias startpg='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' |
|
|
@ -37,7 +41,6 @@ alias stoppg='pg_ctl -D /usr/local/var/postgres stop' |
|
|
|
# This is for the mac GUI version of emacs. |
|
|
|
# This is for the mac GUI version of emacs. |
|
|
|
alias emacs-gui='open -a /Applications/Emacs.app $1' |
|
|
|
alias emacs-gui='open -a /Applications/Emacs.app $1' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Git specific aliases |
|
|
|
# Git specific aliases |
|
|
|
alias gp='git push' |
|
|
|
alias gp='git push' |
|
|
|
alias gs='git status' |
|
|
|
alias gs='git status' |
|
|
@ -74,43 +77,24 @@ promptinit |
|
|
|
plugins=(git brew npm coffee) |
|
|
|
plugins=(git brew npm coffee) |
|
|
|
|
|
|
|
|
|
|
|
# User configuration |
|
|
|
# User configuration |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin":$PATH |
|
|
|
export MYSQL_PATH=/usr/local/Cellar/mysql/5.6.27 |
|
|
|
export PATH="$PATH:$HOME/.rvm/bin:/usr/lib/rstudio/bin" # Add RVM to PATH for scripting |
|
|
|
export PATH=$PATH:$MYSQL_PATH/bin |
|
|
|
. ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true |
|
|
|
|
|
|
|
|
|
|
|
# Brew |
|
|
|
|
|
|
|
export PATH=$PATH:/usr/local/bin |
|
|
|
|
|
|
|
|
|
|
|
# Haskell stuff |
|
|
|
# Haskell stuff |
|
|
|
export PATH=~/.cabal/bin:$PATH |
|
|
|
export PATH=~/.cabal/bin:$PATH |
|
|
|
export PATH=.cabal-sandbox/bin:$PATH |
|
|
|
export PATH=.cabal-sandbox/bin:$PATH |
|
|
|
|
|
|
|
|
|
|
|
# Git Town |
|
|
|
# Groovy |
|
|
|
export PATH=~/git-town/src:$PATH |
|
|
|
export GROOVY_HOME=/usr/local/opt/groovy/libexec |
|
|
|
MANPATH=$MANPATH:~/git-town/man |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# NOTE: 'Whence' is the ZSH idiom for bash's 'type' |
|
|
|
|
|
|
|
export PRENPMPATH=$PATH |
|
|
|
|
|
|
|
if [ -n "$(whence -f npm)" ]; |
|
|
|
|
|
|
|
then |
|
|
|
|
|
|
|
NPMPATH="$(npm bin)" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -d "$NPMPATH" ]; then |
|
|
|
|
|
|
|
PATH=$NPMPATH:$PRENPMPATH |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
PATH=$PRENPMPATH |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export PATH=$PATH |
|
|
|
# Gradle |
|
|
|
fi |
|
|
|
export GRADLE_HOME=/usr/local/opt/gradle/4.5/libexec |
|
|
|
fi |
|
|
|
export PATH=$PATH:/usr/local/opt/gradle/4.5/libexec |
|
|
|
|
|
|
|
|
|
|
|
# Android stuff - I develop android on Linux so these are specific to how I have it laid out in Linux |
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
|
|
|
|
export PATH=/opt/android-studio:$PATH |
|
|
|
|
|
|
|
export ANDROID_HOME=$HOME/Android/Sdk |
|
|
|
|
|
|
|
export PATH=$PATH:$ANDROID_HOME/tools |
|
|
|
|
|
|
|
export PATH=$PATH:$ANDROID_HOME/platform-tools |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
precmd(){ |
|
|
|
precmd(){ |
|
|
@ -131,12 +115,5 @@ if hash opam 2>/dev/null; then |
|
|
|
eval `opam config env` |
|
|
|
eval `opam config env` |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Source RVM if it exists |
|
|
|
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
|
|
|
if [ -f /home/$USER/.rvm/scripts/rvm ]; then |
|
|
|
export PATH="/usr/local/opt/cython/bin:$PATH" |
|
|
|
source /home/$USER/.rvm/scripts/rvm |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! |
|
|
|
|
|
|
|
export SDKMAN_DIR="/home/taylor/.sdkman" |
|
|
|
|
|
|
|
[[ -s "/home/taylor/.sdkman/bin/sdkman-init.sh" ]] && source "/home/taylor/.sdkman/bin/sdkman-init.sh" |
|
|
|
|
|
|
|