diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-09-12 23:10:58 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-09-12 23:10:58 -0400 |
| commit | 75ed7b4f86cd883f32b88d5613ff46d8a21f6794 (patch) | |
| tree | d38260dd255458b2a02193d4e0e2e0f6fe9f6027 /shell/bash | |
| parent | 879d857e0eafa1f716d9e156862154baf49d7655 (diff) | |
| download | dotfiles-75ed7b4f86cd883f32b88d5613ff46d8a21f6794.tar.gz dotfiles-75ed7b4f86cd883f32b88d5613ff46d8a21f6794.tar.xz | |
Split my shell configuration into multiple files and a build script to generate for multiple shells
Diffstat (limited to 'shell/bash')
| -rw-r--r-- | shell/bash | 26 |
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 |
