Change terminal tab title

nano ~/.bashrc

# enter this function footer of the .bashrc file
# Update gnome terminal title
function termtitle() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$*\a\]"
  PS1=${ORIG}${TITLE}
  PROMPT_COMMAND='echo -ne "\033]0;\007"'
}

# save and quit from nano

# source ~/.bashrc
# termtitle example title

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.