wiki:set_terminal_title_server_hostname
Table of Contents
Set terminal title to server's hostname
Add to .bashrc file:
# If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac
Tested on
- Debian 9, 10
See also
References
wiki/set_terminal_title_server_hostname.txt · Last modified: 2021/03/23 17:46 by antisa