Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu 20 terminal rename tab

function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="[e]2;$*a]"
  PS1=${ORIG}${TITLE}
}
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #terminal #rename #tab
ADD COMMENT
Topic
Name
9+1 =