chen3feng / article

本人的文章和笔记,充当懒人 Blog 来用。
9 stars 1 forks source link

WSL: Change console title #53

Open chen3feng opened 8 months ago

chen3feng commented 8 months ago

https://learn.microsoft.com/en-us/windows/terminal/tutorials/tab-title#set-the-shells-title

wsl -- echo -ne '\033]0;New Title\a' ^&^& sleep 10

The title is restored after the command is executed, so I add a sleep to keep it awhile.