-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.bash_profile
53 lines (43 loc) · 1.3 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
# Since I've yet to grasp the whole .bash* dance across ubuntu and macos,
# I can touch ~/.debug_dotfiles just in case.
if [ -e ~/.debug_dotfiles ]
then
echo "This is $BASH_ARGV"
fi
# non interactive? exit now.
if [ -z "$PS1" ]; then
return
fi
. ~/dotfiles/profile.d/path.sh
. ~/dotfiles/profile.d/completion.sh
. ~/dotfiles/profile.d/prompt.sh
. ~/dotfiles/profile.d/aliases.sh
. ~/dotfiles/profile.d/exports.sh
test -r ~/dotfiles-private/.profile.private && source ~/dotfiles-private/.profile.private
# Shell opts
shopt -s cdspell
shopt -s extglob
shopt -s histappend
shopt -s nocaseglob
shopt -s histappend # append, not overwrite history
fortune
if [ "$(uname)" == "Darwin" ]; then
alias ls='ls -pG'
export PGDATA=/usr/local/var/postgres
fi
if [ "$(uname)" == "Linux" ]; then
alias xclip="xclip -selection c"
eval `dircolors $HOME/dotfiles/opt/dircolors-solarized/dircolors.ansi-dark`
fi
if [ -d ~/.rbenv ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi
if [ -d ~/.pyenv ]; then
export PATH="$HOME/.pyenv/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
eval "$(pyenv init -)"
fi
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"