
Add following code to .bashrc
function title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
title="[e]2;$*a]"
PS1=${ORIG}${TITLE}
}
And source ~/.bashrc
Then open a terminal and run command title:
After execute this command:
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)