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.
34 lines
686 B
34 lines
686 B
2 years ago
|
#!/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"
|