Testing fixes; adding pacman hooks

This commit is contained in:
DarkFeather
2019-05-06 02:31:16 -05:00
parent c12535de2e
commit 310c7783e9
7 changed files with 38 additions and 7 deletions

View File

@@ -5,8 +5,9 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
### Prompt ###
organization="$(hostname | rev | cut -f 2 -d '.' | rev)"
PS1='\[\033[00;31m\][ '"${org^^}"'::\h/\[\033[01;32m\]\u \[\033[00;31m\]\\\\\\\\ ${SHELL} {\[\033[m\]$? \[\033[00;36m\]\D{%F-%R} \[\033[00;35m\]\w\[\033[00;31m\]\[\033[00;31m\]} ]\n|\[\033[m\]> '
PS1='\[\033[00;31m\][ '"${organization^^}"'::\h/\[\033[01;32m\]\u \[\033[00;31m\]\\\\\\\\ ${SHELL} {\[\033[m\]$? \[\033[00;36m\]\D{%F-%R} \[\033[00;35m\]\w\[\033[00;31m\]\[\033[00;31m\]} ]\n|\[\033[m\]> '
PS2='> '
PS3='> '
PS4='+ '
@@ -20,10 +21,6 @@ case ${TERM} in
;;
esac
# Considered untrusted.
# https://bugs.archlinux.org/task/55841
#[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
### MOTD ###
[ -f /etc/bash.motd ] && cat /etc/bash.motd