Chinaunix首页 | 论坛 | 博客
  • 博客访问: 172728
  • 博文数量: 47
  • 博客积分: 3053
  • 博客等级: 少校
  • 技术积分: 451
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-01 04:33
个人简介

malware/APT detection, silicon valley, entrepreneur, CTO, start-up operation, team build, Nanjing/Beijing, if you want to do creative things, join the adventure.

文章分类

全部博文(47)

分类: LINUX

2011-05-19 06:04:17

Put into your shell startup rc file this line (on every host):

bash -c "echo -ne '\033]0;`hostname`\007'"

for bash it's .bash_login
for csh/tcsh it's .login

this line will update your title to output of command `hostname` - you may replace it by any text you wish (don't forget to remove back quotes - they run command quoted by them)

PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}
${USER}: ${PWD}\007"'
阅读(1302) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~