How does this script for naming iTerm tabs work?

前端 未结 3 1976
难免孤独
难免孤独 2021-02-03 16:41

I\'m trying to name my iTerm tabs and found this link. Here is the pertinent part of the guy\'s post:

I wrote a simple script, which I call “nametab”, whi

3条回答
  •  鱼传尺愫
    2021-02-03 16:57

    If you want to have an alias for changing the tab name, you can actually do it by defining a function in your .profile/.bashrc file like this:

    function renametab () {
        echo -ne "\033]0;"$@"\007"
    }
    

提交回复
热议问题