#!/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 export PATH="$PATH:$HOME/.rvm/bin" . "$HOME/.cargo/env"