diff options
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc new file mode 100644 index 0000000..f1fd127 --- /dev/null +++ b/bash/bashrc @@ -0,0 +1,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\]\w\[\033[0m\] \[\033[1;34m\]\$\[\033[0m\] " +else + export PS1="\u@\h \w \$ " +fi + +alias tmux='t' |