aboutsummaryrefslogtreecommitdiff
path: root/shell/bash
diff options
context:
space:
mode:
Diffstat (limited to 'shell/bash')
-rw-r--r--shell/bash26
1 files changed, 26 insertions, 0 deletions
diff --git a/shell/bash b/shell/bash
new file mode 100644
index 0000000..1106665
--- /dev/null
+++ b/shell/bash
@@ -0,0 +1,26 @@
+
+colormanpages
+setcolorterminal
+setcoloraliases
+setlscolors
+set_pager
+set_editor
+setaliases
+setsudoaliases
+
+export PROMPT_COMMAND="set_my_title"
+export MANWIDTH=80
+
+# checkSSHAgent
+
+function nonzero_return() {
+ RETVAL=$?
+ [ $RETVAL -ne 0 ] && echo "$RETVAL:"
+}
+
+export PS1="\`nonzero_return\`[\t] <\u@\H> \w \\$ "
+
+# Same thing but red user/host combo
+if [ $(id -u) -eq 0 ] ; then
+ export PS1="\`nonzero_return\`[\t] <\[\e[31m\]\u\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\H\[\e[m\]> \w \\$ "
+fi