TMuX hostfiles renamed

Introduced SHORTPS1 for a newline in PS1 (if not set or empty)
This commit is contained in:
Eric Teunis de Boone 2017-09-06 23:01:11 +02:00
parent f2d18875fc
commit ced6cf6d6a
4 changed files with 15 additions and 20 deletions

View File

@ -73,18 +73,18 @@ function __prompt_command() {
PS1+="@"
if color ; then
case "$HOSTNAME" in
'maclean') PS1+="${IGre}\H${RCol}";;
'tinsmith'|'beatmaker') PS1+="${Gre}\H${RCol}";;
'blacksmith'|'beatmachine') PS1+="${Blu}\H${RCol}";;
'locksmith'|'fatserf') PS1+="${Pur}\H${RCol}";;
'lilo'*) PS1+="${BWhi}\H${RCol}";;
'hg'*) PS1+="${BRed}\H${RCol}";;
'gouda'|'bunnik'|'houten'|'zandberg'|'bussum'|'baarn') PS1+="${Gre}${On_Whi}HEF:${Blu}${On_Whi}\H${RCol}";;
*) PS1+="${Blu}${On_Whi}\H${RCol}";;
case "${HOSTNAME%%.*}" in
'maclean') PS1+="${IGre}\h${RCol}";;
'tinsmith') PS1+="${Gre}\h${RCol}";;
'blacksmith') PS1+="${Blu}\h${RCol}";;
'locksmith') PS1+="${Pur}\h${RCol}";;
'lilo'*) PS1+="${BWhi}\h${RCol}";;
'hg'*) PS1+="${BRed}\h${RCol}";;
'gouda'|'bunnik'|'houten'|'zandberg'|'bussum'|'baarn') PS1+="${Gre}${On_Whi}HEF:${Blu}${On_Whi}\h${RCol}";;
*) PS1+="${Blu}${On_Whi}\h${RCol}";;
esac
else
PS1+="\H"
PS1+="\h"
fi
#time w/ seconds
@ -109,8 +109,13 @@ function __prompt_command() {
PS1+="${RCol}"
fi
PS1+=" "
## Short prompt
if [ -n "${SHORTPS1}" ]; then
PS1+="\r\n"
fi
#UID
PS1+=':\$ '
}
function retval() {

View File

@ -1,7 +0,0 @@
# status bar config
set -g status-interval 5
set -g status-left "#h:[#S][#I]"
set -g status-left-length 20
#set -g status-right "%A %m-%d %H:%M"
set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %A %m-%d %H:%M'

View File

@ -1,2 +0,0 @@
set -g status-bg blue
set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'

View File

@ -1 +0,0 @@
set -g status-bg red