Update bash.bashrc
tn() bash function to change the name of a terminal
This commit is contained in:
parent
1c23b53add
commit
7859bfab0d
@ -10,6 +10,11 @@ esac
|
|||||||
|
|
||||||
export EDITOR=vi
|
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.
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
# See bash(1) for more options
|
# See bash(1) for more options
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
|
Loading…
Reference in New Issue
Block a user