You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
759 B

#!/bin/zsh
if hash vim 2>/dev/null; then
export EDITOR=vim
else
export EDITOR=vi
fi
if hash clang 2>/dev/null; then
export CC=$(which clang)
else
export CC=$(which gcc)
fi
if hash clang++ 2>/dev/null; then
export CXX=$(which clang++)
else
export CXX=$(which g++)
fi
export OPENSSL_ROOT_DIR=$(which openssl)
# Add openJDK to path
export PATH="/usr/local/opt/openjdk/bin:$PATH"
# Ignore duplicates in history to make history less of a hassle to use.
export HISTCONTROL=ignoredups
# If go is installed, set the $GOPATH to the projects directory created above.
if which go > /dev/null; then export GOPATH=$HOME/.go; fi
if [ -d "$HOME/.rvm" ]; then
export PATH="$PATH:$HOME/.rvm/bin"
fi
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi