From 282b1f95844ac86de3009d02c2bec72acc3c5421 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 17 Oct 2019 14:31:05 +0400 Subject: [PATCH] xterm title --- bash.bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash.bashrc b/bash.bashrc index 80ef89c..56ad7e6 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -58,6 +58,10 @@ __prompt_command() { local Mag='\[\e[1;95m\]' local Gra='\[\e[1;30m\]' + + # set xterm title + echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007" + PS1='' if [[ $container == 'lxc' ]];then