-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile
95 lines (76 loc) · 2.35 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
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# load user-specific profile, if present
if [ -f ~/.bash_profile.${USER} ]; then
. ~/.bash_profile.${USER}
fi
# append import paths to $PATH
PATH=$HOME/.local/bin:/usr/local/bin:$PATH:/var/www/pbin/Perlbrew/bin
# set vim as the editor for SVN
SVN_EDITOR=$(which vim 2> /dev/null)
# let tmux know where libevent libraries are
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libevent-2.1.12-stable/.libs
export EDITOR=$(which vim 2> /dev/null)
export PATH
export SVN_EDITOR
unset USERNAME
HISTFILESIZE=
export TERM=xterm-256color
# bash aliases included in dotfiles
if test -f ~/.bash_aliases; then
source ~/.bash_aliases
fi
# bash aliases for mysql connections not included in dotfiles
if test -f ~/.mysql_aliases; then
source ~/.mysql_aliases
fi
# additional bash aliases not included in dotfiles
if test -f ~/.bash_aliases_; then
source ~/.bash_aliases_
fi
#echo 'See all connected hosts: ss -napr'
# customize command prompt with colors
# user@host [curdir]:
export PS1="\[\e[1;31m\]\u\[\e[0m\]@\[\e[0;36m\]\h \[\e[0m\]\[\e[m\[\e[0;32m\][\W]\[\e[0m\]: "
export HISTSIZE=10000
# colored man pages
man() { env \
LESS_TERMCAP_mb=$'\e[01;31m' \
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
man "$@"
}
# colored ls output
alias ls='ls --color'
# attach to last tmux session, or start a new session
# if no session exists
if [ -z "$TMUX" ]; then
tmux a -d || tmux new -s new
fi
# for storing SVN passwords securely
export GPG_TTY=$(tty)
# test for gpgconf to avoid erorr if missing
if command -v gpgconf &> /dev/null
then
export GPG_AGENT_INFO=`gpgconf --list-dirs agent-socket | tr -d '\n' && echo -n ::`
fi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<