From 75ed7b4f86cd883f32b88d5613ff46d8a21f6794 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 12 Sep 2019 23:10:58 -0400 Subject: Split my shell configuration into multiple files and a build script to generate for multiple shells --- shell/bash | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 shell/bash (limited to 'shell/bash') 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 -- cgit v1.2.3