summaryrefslogtreecommitdiff
path: root/autoinstall/bootstrap/bashrc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'autoinstall/bootstrap/bashrc.txt')
-rw-r--r--autoinstall/bootstrap/bashrc.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/autoinstall/bootstrap/bashrc.txt b/autoinstall/bootstrap/bashrc.txt
new file mode 100644
index 0000000..db4283e
--- /dev/null
+++ b/autoinstall/bootstrap/bashrc.txt
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+cat > /home/kolab/.bashrc << EOF
+# .bashrc
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+ . /etc/bashrc
+fi
+
+# Set PATH before searching for sudo_utils
+export PATH=\$HOME/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
+
+# User specific aliases and functions
+export HISTSIZE=9999999
+export SVN_EDITOR=vim
+export EDITOR=vim
+export DEBEMAIL=vanmeeuwen@kolabsys.com
+export DEBFULLNAME="Jeroen van Meeuwen (Kolab Systems)"
+
+export LS_OPTIONS='--color=auto'
+eval "\$(dircolors)"
+alias ls='ls \$LS_OPTIONS'
+alias ll='ls \$LS_OPTIONS -l'
+alias l='ls \$LS_OPTIONS -lA'
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
+export GIT_PS1_SHOWDIRTYSTATE=1
+export GIT_PS1_SHOWUNTRACKEDFILES=1
+export GIT_PS1_SHOWUPSTREAM="auto verbose"
+
+if [ ! -f "/etc/bash_completion" ]; then
+ if [ -f "/etc/bash_completion.d/git" ]; then
+ cp /etc/bash_completion.d/git ~/.git-completion.sh
+ . ~/.git-completion.sh
+ PS1='[\u@\h \W\$(__git_ps1 " (%s)")]\\$ '
+ fi
+else
+ PS1='[\u@\h \W\$(__git_ps1 " (%s)")]\\$ '
+fi
+EOF
+
+ln -sf /home/kolab/.bashrc /root/.bashrc