summaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-08-17 22:16:13 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-08-17 22:16:13 +0200
commite766d9fe1d0c5677214a0a100edf43e7056d7662 (patch)
treeeb93e10c81714e8ea7dd826fbcd7d217ced1dc87 /bash
downloaddotfiles-mini-e766d9fe1d0c5677214a0a100edf43e7056d7662.tar.gz
dotfiles-mini-e766d9fe1d0c5677214a0a100edf43e7056d7662.tar.bz2
dotfiles-mini-e766d9fe1d0c5677214a0a100edf43e7056d7662.zip
initial commit
Diffstat (limited to 'bash')
-rw-r--r--bash/.gitignore1
-rw-r--r--bash/bashrc29
2 files changed, 30 insertions, 0 deletions
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'