From e766d9fe1d0c5677214a0a100edf43e7056d7662 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 17 Aug 2013 22:16:13 +0200 Subject: initial commit --- bash/.gitignore | 1 + bash/bashrc | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 bash/.gitignore create mode 100644 bash/bashrc (limited to 'bash') diff --git a/bash/.gitignore b/bash/.gitignore new file mode 100644 index 0000000..8e50fd2 --- /dev/null +++ b/bash/.gitignore @@ -0,0 +1 @@ +bash_history 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' -- cgit v1.2.3-1-g7c22