summaryrefslogtreecommitdiff
path: root/bashrc/.wit
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/.wit')
-rw-r--r--bashrc/.wit33
1 files changed, 33 insertions, 0 deletions
diff --git a/bashrc/.wit b/bashrc/.wit
new file mode 100644
index 0000000..275a7d2
--- /dev/null
+++ b/bashrc/.wit
@@ -0,0 +1,33 @@
+# set -x
+
+# Some more alias to avoid making mistakes:
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
+if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
+ . /etc/bash_completion
+fi
+
+export WIT_BASH=true
+export WIT_USER=$LC_USER
+if [ "x$WIT_USER" == "x" ]; then
+ export WIT_USER=$USER
+fi
+
+# read in custom bash settings if you want
+#if [ -f ~/jcarr/bashrc/.jcarr ] && ! shopt -oq posix; then
+# . ~/jcarr/bashrc/.jcarr
+#fi
+
+# read in custom bash settings if you want
+case "$WIT_USER" in
+jcarr2)
+ . ~/jcarr/bashrc/.jcarr
+ ;;
+*)
+ if [ -f ~/$WIT_USER/bashrc/.$WIT_USER ] && ! shopt -oq posix; then
+ . ~/$WIT_USER/bashrc/.$WIT_USER
+ fi
+ ;;
+esac