-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
121 lines (98 loc) · 2.55 KB
/
bash_profile
File metadata and controls
121 lines (98 loc) · 2.55 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/bash
# vi: ft=sh
# Interactivity check
[[ $- == *i* ]] || return
# Completion for bash and git
if [ "$(uname)" == 'Darwin' ]
then
if [ -f /usr/local/etc/bash_completion ]
then
source "$(brew --prefix)/etc/bash_completion"
fi
fi
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
:
fi
# So CTRL-S doesn't freeze the terminal, apparently...
#stty start undef stop undef
source ~/.aliases
if [ -f ~/.secrets ]; then
source ~/.secrets
fi
export _HOSTNAME="pgeringer"
source ~/.ps1_settings
if [ -e ~/.locale ]
then
source ~/.locale
fi
if [ -e ~/.shellcheckrc ]
then
source ~/.shellcheckrc
fi
if [ -e /etc/environment ]
then
source /etc/environment
fi
if [ -d ~/lib ]
then
for file in ~/lib/*.sh;
do
source "$file"
done
fi
eval "$(hub alias -s)"
# Get my identity added in each shell
#ssh-add > /dev/null 2>&1
# Hooray work junk
if [ "$(whoami)" == "pgeringer" ]
then
#source ~/.oracle_junk
:
fi
# Standard Stuff
export EDITOR=/usr/local/bin/vim
export VISUAL=$EDITOR
export TERM=xterm-256color
if [ ! -z "$TMUX" ]; then
export TERM=screen-256color
fi
brew_prefix=$(brew --prefix)
export HISTFILESIZE=
export HISTSIZE=
export GREP_OPTIONS="--color=auto"
export PATH=/usr/local/opt/python@2/libexec/bin:$PATH:~/Development/lib:~/lib:~/Development/dockhub
export RUBY_CONFIGURE_OPTS=--with-readline-dir="${brew_prefix:-/usr/local}/opt/readline"
export TMUX_SOCK=/var/tmux/pairing
export WORKON_HOME=~/.venvs
export HOMEBREW_AUTO_UPDATE_SECS=3600
#source /usr/local/bin/virtualenvwrapper.sh
## TMUX WINDOW HISTORY SHARING GROSSNESS
export HISTCONTROL=ignoredups:erasedups:ignoreboth
shopt -s histappend
#After each command, save and reload history
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
# Fzf stuff
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export FZF_COMPLETION_TRIGGER='~~'
export FZF_DEFAULT_COMMAND='ag -i --nocolor --nogroup --hidden --ignore .git --ignore .svn --ignore .hg --ignore .DS_Store --ignore "**/*.pyc" -g ""'
export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND
complete -F _fzf_path_completion -o default -o bashdefault tig
#def rbenv crap
if [ -s "$HOME/.rbenv" ]
then
export PATH="$HOME/.rbenv/bin:$PATH"
export RBENV_ROOT=/usr/local/var/rbenv
eval "$(rbenv init - --no-rehash)"
fi
#end rbenv crap
#def pyenv crap
if command -v pyenv 1>/dev/null 2>&1;
then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - --no-rehash)"
eval "$(pyenv virtualenv-init - --no-rehash)"
fi
#end pyenv crap
. "$HOME/.cargo/env"