mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-06-01 20:09:13 +02: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+="@"
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue