mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
TMuX hostfiles renamed
Introduced SHORTPS1 for a newline in PS1 (if not set or empty)
This commit is contained in:
parent
f2d18875fc
commit
ced6cf6d6a
4 changed files with 15 additions and 20 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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'
|
|
||||||
|
|
|
@ -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'
|
|
|
@ -1 +0,0 @@
|
||||||
set -g status-bg red
|
|
Loading…
Reference in a new issue