Tabs
The Tabs feature allows you to organize a window into multiple terminal sessions. Tabs can be customized with a title and/or an ANSI color to help identify them.
How to use Tabs
# Set name, where MyTabName would be whatever you want to see in the Tab ( either a fixed string, $PWD, or something else )
function set_name () {
echo -ne "\033]0;MyTabName\007"
}
# Add the function to the environment variable in either Zsh or Bash
if [ -n "$ZSH_VERSION" ]; then
precmd_functions+=(set_name)
elif [ -n "$BASH_VERSION" ]; then
PROMPT_COMMAND='set_name'
fiTab Restoration
CTRL-TAB Behavior
Tabs Behavior
How Tabs work
Last updated
Was this helpful?