1. 首页
  2. 数据库
  3. 其它
  4. Xshell终端设置主机名和用户名颜色

Xshell终端设置主机名和用户名颜色

上传者: 2021-01-16 20:46:59上传 PDF文件 41.27KB 热度 12次
编辑用户家目录下的.bashrc文件并追加以下内容: case $TERM in xterm-color|*-256color) color_prompt=yes;; esac force_color_prompt=yes if [ -n $force_color_prompt ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then color_prompt=yes else color_prompt= fi fi if [ $color_prompt = yes ]; the
下载地址
用户评论