mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
Allow ALTERNATE title on terminal
I like byobu to set my terminal title for me, but I would like to be allowed to set the title I want. This way, if I call byobu from ".profile" the way I wrote down, I will get HOSTNAME as title. :-) BYOBU_ALT_TITLE='$(echo ${HOSTNAME:-$(hostname)} | /usr/bin/tr '\''[:lower:]'\'' '\''[:upper:]'\'')' . /usr/bin/byobu-launch Hope it could be interesting for someone.
This commit is contained in:
parent
3ebbea1ec2
commit
0b317a0652
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ byobu-janitor --force
|
|||
if [ -t 1 ]; then
|
||||
[ -r "$BYOBU_CONFIG_DIR/statusrc" ] && . "$BYOBU_CONFIG_DIR/statusrc"
|
||||
. $BYOBU_PREFIX/lib/$PKG/ip_address
|
||||
[ -n "$BYOBU_NO_TITLE" ] || printf "\033]0;${USER}@$(hostname) ($(__ip_address t)) - ${PKG}\007"
|
||||
BYOBU_TITLE=${BYOBU_ALT_TITLE:-'${USER}@${HOSTNAME:-$(hostname)} ($(__ip_address t)) - ${PKG}'}
|
||||
[ -n "$BYOBU_NO_TITLE" ] || eval printf \"\\033\]0\;${BYOBU_TITLE}\\007\"
|
||||
fi
|
||||
|
||||
# Drop a symlink to the ssh socket in $HOME, since we can ensure that exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue