blob: 6521beb8c205c357a9128d7c898eeb710b7c1cc6 (
plain)
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
|
# git foo
if [ -d "${HOME}/.${REMOTE_USER}/git" ]; then
export GIT_CONFIG_PARAMETERS="'include.path=~/.${REMOTE_USER}/git/config'
'core.excludesfile=~/.${REMOTE_USER}/git/globalignore'"
fi
# path
export PATH="${HOME}/bin:${HOME}/server/bin:${PATH}"
if [ -n "${REMOTE_USER}" -a -d "${HOME}/.${REMOTE_USER}/bin/" ]; then
export PATH="${HOME}/.${REMOTE_USER}/bin/:${PATH}"
fi
# own history
export HISTFILE="${HOME}/.${REMOTE_USER}/bash/bash_history"
export HISTSIZE=5000
export HISTCONTROL="ignoreboth:erasedups"
export HISTTIMEFORMAT="%F %T "
# other stuff
ncolors=$(tput colors)
if [ -n "$ncolors" ] && [ $ncolors -ge 8 ]; then
# color support
export PS1="\[\033[1;36m\]\u@\h\[\033[0m\] \[\033[1;35m\]\${PWD}\[\033[0m\] \[\033[1;34m\]\\\$\[\033[0m\] "
else
export PS1="\u@\h \${PWD} \\\$ "
fi
alias tmux='t'
|