Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu 20 terminal rename tab

function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="[e]2;$*a]"
  PS1=${ORIG}${TITLE}
}
Comment

rename terminal tab title in ubuntu 20.04

## Create a function in ~/.bashrc:

function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="[e]2;$*a]"
  PS1=${ORIG}${TITLE}
}

## Then run:
source ~/.bashrc

## Then use your new command to set the terminal title. It works with spaces in the name too:
set-title my new tab title
Comment

PREVIOUS NEXT
Code Example
Shell :: find directory spend inodes 
Shell :: dum mysql db with cli 
Shell :: registry key programfilesdir 
Shell :: install gearman di linux 
Shell :: cara mengkonfigurasi git di terminal linux 
Shell :: disable new git experience visual studio 
Shell :: tar -cxvf other directory 
Shell :: fedora videos not working without bluetooth 
Shell :: flow for vim 
Shell :: how to conda install flask-whooshalchemy 
Shell :: pip install tensorflow no matching distribution found for tensorflow 
Shell :: close adb shell 
Shell :: centos who connected to server 
Shell :: how to open a window using linux terminal 
Shell :: the folder cannot be copied because you do not have permissions to create it in the destination 
Shell :: codition in bash 
Shell :: ssh allow password login subnet 
Shell :: install kubernetes on wsl 
Shell :: how to enable separate windows on taskbar in ubuntu 
Shell :: qgis linux download 
Shell :: delete file kali 
Shell :: GitLab Break the git init --initial-branch=main out into two commands 
Shell :: Bash commands execution logging for debugging 
Shell :: tcpdump ubuntu 
Shell :: restart linux 
Shell :: wsl2 config file 
Shell :: shell less bin 
Shell :: git undo changes single file 
Shell :: how will you clone the following git repository using git cli? 
Shell :: gitexplorer 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =