The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 37,939     Votes:  3 
Tags: command-line   bash   16.04  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1164870
Title: How to change Terminal Title in ubuntu 16.04
ID: /2019/08/10/How-to-change-Terminal-Title-in-ubuntu-16.04
Created: August 10, 2019    Edited:  August 11, 2019
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


This is the function I use in my ~/.bashrc file:

function termtitle() { PS1="${PS1/\\u@\\h: \\w/$@}"; }

After adding it (or changing it) you must resource your file:

. ~/.bashrc

To use it type something like:

termtitle Special Projects

After changing the title once, you must resource to change it again:

. ~/.bashrc
termtitle My new title
⇧ Long kernel load time Is it possible to patch without spiking the CPU?  ⇩