-
Notifications
You must be signed in to change notification settings - Fork 2
/
bash_profile
100 lines (75 loc) · 3.32 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# ~/.bash_profile: executed by bash for login shells.
# Chromebooks w/ Crouton, add this to /etc/profile:
# export CHROMEBOOK=1
export LC_COLLATE=C
if [[ $OSTYPE =~ freebsd ]]; then
export LANG=en_US.UTF-8
export MM_CHARSET=ISO-8859-1
fi
exists() {
test -x "$(command -v "$1")"
}
if [[ $OSTYPE =~ freebsd || $OSTYPE == linux-gnu ]]; then
source /etc/profile
fi
if [[ $HOSTNAME =~ lvn || $HOSTNAME =~ xl- ]]; then
export LANG=en_US.UTF-8
source /tools/bin/common.profile
fi
if [[ -d "$HOME/.bin" ]]; then
PATH=$PATH:$HOME/.bin
for d in `ls "$HOME/.bin/"`; do
[[ ! -d "$HOME/.bin/$d" ]] && continue
export PATH="$PATH:$HOME/.bin/$d"
done
fi
[[ -d "$HOME/.priv/bin" ]] && PATH="$PATH:$HOME/.priv/bin"
[[ -d "$HOME/.local/bin" ]] && PATH="$PATH:$HOME/.local/bin"
[[ -d "$HOME/.cargo/bin" ]] && PATH="$PATH:$HOME/.cargo/bin"
[[ -d "/opt/homebrew/bin" ]] && PATH="$PATH:/opt/homebrew/bin"
[[ -d "/sbin" ]] && PATH="$PATH:/sbin"
[[ -d "/usr/sbin" ]] && PATH="$PATH:/usr/sbin"
[[ -d "/usr/bin" ]] && PATH="$PATH:/usr/bin"
[[ -d "/usr/local/sbin" ]] && PATH="$PATH:/usr/local/sbin"
[[ -d "/usr/local/bin" ]] && PATH="$PATH:/usr/local/bin"
[[ -d "/usr/X11R6/bin" ]] && PATH="$PATH:/usr/X11R6/bin"
[[ -d "/usr/sfw/bin" ]] && PATH="$PATH:/usr/sfw/bin"
[[ -d "/usr/csw/bin" ]] && PATH="$PATH:/usr/csw/bin"
[[ -d "/usr/dt/bin" ]] && PATH="$PATH:/usr/dt/bin"
[[ -d "/usr/ccs/bin" ]] && PATH="$PATH:/usr/ccs/bin"
[[ -d "/usr/openwin/bin" ]] && PATH="$PATH:/usr/openwin/bin"
[[ -d "/opt/onbld/bin" ]] && PATH="$PATH:/opt/onbld/bin"
[[ -d "/opt/onbld/bin/i386" ]] && PATH="$PATH:/opt/onbld/bin/i386"
[[ -d "/opt/onbld/bin/sparc" ]] && PATH="$PATH:/opt/onbld/bin/sparc"
[[ -d "/opt/SUNWspro/bin" ]] && PATH="$PATH:/opt/SUNWspro/bin"
[[ -d "/opt/sunstudio12.1/bin" ]] && PATH="$PATH:/opt/sunstudio12.1/bin"
[[ -d "$HOME/linaro/gcc-linaro-aarch64" ]] && PATH="$PATH:/$HOME/linaro/gcc-linaro-aarch64"
[[ -d "/usr/man" ]] && MANPATH="$MANPATH:/usr/man"
[[ -d "/usr/share/man" ]] && MANPATH="$MANPATH:/usr/share/man"
[[ -d "/usr/local/man" ]] && MANPATH="$MANPATH:/usr/local/man"
[[ -d "/usr/local/share/man" ]] && MANPATH="$MANPATH:/usr/local/share/man"
[[ -d "/usr/X11R6/man" ]] && MANPATH="$MANPATH:/usr/X11R6/man"
[[ -d "/usr/sfw/man" ]] && MANPATH="$MANPATH:/usr/sfw/man"
[[ -d "/opt/onbld/man" ]] && MANPATH="$MANPATH:/opt/onbld/man"
[[ -d "/opt/csw/man" ]] && MANPATH="$MANPATH:/opt/csw/man"
[[ -d "/opt/SUNWpkgd/man" ]] && MANPATH="$MANPATH:/opt/SUNWpkgd/man"
[[ -d "/opt/SUNWscat/man" ]] && MANPATH="$MANPATH:/opt/SUNWscat/man"
[[ -d "/opt/SUNWspro/man" ]] && MANPATH="$MANPATH:/opt/SUNWspro/man"
[[ -d "/opt/sunstudio12.1/man" ]] && MANPATH="$MANPATH:/opt/sunstudio12.1/man"
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT ]] && export PATH="$PYENV_ROOT/bin:$PATH"
exists pyenv && eval "$(pyenv init --path)"
umask 022
# if not running interactively then bail
[[ $- != *i* ]] && return
# disable XON/XOFF flow control on the terminal
stty -ixon
if [[ -e ~/.fzf.bash ]] ; then
source ~/.fzf.bash
fi
if [[ -e ~/.bashrc ]] ; then
source ~/.bashrc
fi
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
. "$HOME/.cargo/env"