diff --git a/bash.bashrc b/bash.bashrc index befd258..c1d374a 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -10,6 +10,11 @@ esac export EDITOR=vi +# Macro for terminal/tab name i.e. $ tn "NameOfTab" +tn() { + echo -ne "\033]0;$1\007" +} + # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth