-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
65 lines (52 loc) · 1.78 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# Path to the bash it configuration
export BASH_IT=$HOME/Documents/sandbox/dotfiles/bash-it
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='mhyee'
# Set my editor and git editor
export EDITOR="vim"
# Don't check mail when opening terminal.
unset MAILCHECK
# Setup PATH to use homebrew
PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export PATH
# Use vim to read man pages, thanks to
# http://zameermanji.com/blog/2012/12/30/using-vim-as-manpager/#edit
#export MANPAGER="/bin/sh -c \"col -b | vim -c 'set ft=man ts=8 nomod nolist nonu noma' -\""
# Load perlbrew, rbenv, cabal, opam, racket, rust, and tex
PERLBREW_ROOT="$HOME/.perl5"
export PERLBREW_ROOT
[[ -s "$PERLBREW_ROOT/etc/bashrc" ]] && . "$PERLBREW_ROOT/etc/bashrc"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export PATH="$HOME/.cabal/bin:$PATH"
eval `opam config env`
export PATH=/Applications/Racket/bin:$PATH
export PATH="$HOME/.cargo/bin:$PATH"
export PATH=$PATH:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
# Load Heroku tools
#export PATH="/usr/local/heroku/bin:$PATH"
### FYDP stuff
# Put waf into the path
#export PATH="/usr/local/waf:$PATH"
# Set JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home`
# Usage: puniq [<path>]
# Remove duplicate entries from a PATH style value while retaining
# the original order. Use PATH if no <path> is given.
#
# Example:
# $ puniq /usr/bin:/usr/local/bin:/usr/bin
# /usr/bin:/usr/local/bin
puniq () {
echo "$1" |tr : '\n' |nl |sort -u -k 2,2 |sort -n |
cut -f 2- |tr '\n' : |sed -e 's/:$//' -e 's/^://'
}
PATH=$(puniq $PATH)
# Load Bash It
source $BASH_IT/bash_it.sh
# Fix so Ctrl+S works in Vim (Mac only)
stty -ixon -ixoff
# Use real GCC
#export CC=/usr/local/bin/gcc-5
#export CXX=/usr/local/bin/gcc-5