1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00

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