admin管理员组

文章数量:1130349

  1. 在~/.bashrc中添加下面代码
function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$*\a\]"
  PS1=${ORIG}${TITLE}
}
  1. set-title China
    即可将title设置为China
  1. 在~/.bashrc中添加下面代码
function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$*\a\]"
  PS1=${ORIG}${TITLE}
}
  1. set-title China
    即可将title设置为China

本文标签: 终端标题系统UbuntuLinux