4 ms·
I usually have multiple Bash tabs open in Terminal, and I needed a quick way to see what each tab contained. The following bash script will set the Title of the
by jakkals 6y ago
I usually have multiple Bash tabs open in Terminal, and I needed a quick way to see what each tab contained. The following bash script will set the Title of the tab.
#!/bin/bash
# Sets the title of the Terminal Window / Tab.
# title foo => Sets the title of the Terminal Window / Tab to foo.
echo -n -e "\033]0;$1\007"
- dividedbyzero 6y agoShould anyone be wondering why this doesn't work in fish, it seems it overwrites the title back to the default pretty much instantly. So no custom tab names with fish, it seems!