C Shell three lines prompt
时间:2004-01-30
来源:互联网
set NONE="\033[0m"
set BLACK="\033[0;30m"
set DK_GRAY="\033[1;30m"
set BLUE="\033[0;34m"
set LT_BLUE="\033[1;34m"
set GREEN="\033[0;32m"
set LT_GREEN="\033[1;32m"
set CYAN="\033[0;36m"
set LT_CYAN="\033[1;36m"
set RED="\033[0;31m"
set LT_RED="\033[1;31m"
set PURPLE="\033[0;35m"
set LT_PURPLE="\033[1;35m"
set BROWN="\033[0;33m"
set YELLOW="\033[1;33m"
set LT_GRAY="\033[0;37m"
set WHITE="\033[1;37m"
# %B begin bold
# %b end bold
# %{ begin control escape
# %} end control escape, cannot be the last in prompt
# %m hostname, without domain
# %/ current directory
# %D day in dd format
# %W month in mm format
# %Y year in yyyy format
# %l tty
# %P time in 24 hour format
# %h history number
#set mhost=`/bin/uname -n | /bin/sed -e '/^ *$/d' -e 's/\..*//'`
set mhost=`/bin/uname -n`
set mtty=`/usr/bin/tty | cut -d/ -f 3-4`
alias precmd '/usr/bin/tput bold; set mclock=`date +%X`; echo "\n${LT_RED}${mhost}${NONE} : ${LT_CYAN}${mtty}${NONE} : ${LT_GREEN}${mclock}${NONE} : ${YELLOW}${cwd}${NONE}"; /usr/bin/tput sgr0'
if ( -o /bin/su ) then
set prompt="%B%{${LT_PURPLE}%}%h %{${NONE}%}# %b"
else
set prompt="%B%{${LT_PURPLE}%}%h %{${NONE}%}% %b"
endif
set BLACK="\033[0;30m"
set DK_GRAY="\033[1;30m"
set BLUE="\033[0;34m"
set LT_BLUE="\033[1;34m"
set GREEN="\033[0;32m"
set LT_GREEN="\033[1;32m"
set CYAN="\033[0;36m"
set LT_CYAN="\033[1;36m"
set RED="\033[0;31m"
set LT_RED="\033[1;31m"
set PURPLE="\033[0;35m"
set LT_PURPLE="\033[1;35m"
set BROWN="\033[0;33m"
set YELLOW="\033[1;33m"
set LT_GRAY="\033[0;37m"
set WHITE="\033[1;37m"
# %B begin bold
# %b end bold
# %{ begin control escape
# %} end control escape, cannot be the last in prompt
# %m hostname, without domain
# %/ current directory
# %D day in dd format
# %W month in mm format
# %Y year in yyyy format
# %l tty
# %P time in 24 hour format
# %h history number
#set mhost=`/bin/uname -n | /bin/sed -e '/^ *$/d' -e 's/\..*//'`
set mhost=`/bin/uname -n`
set mtty=`/usr/bin/tty | cut -d/ -f 3-4`
alias precmd '/usr/bin/tput bold; set mclock=`date +%X`; echo "\n${LT_RED}${mhost}${NONE} : ${LT_CYAN}${mtty}${NONE} : ${LT_GREEN}${mclock}${NONE} : ${YELLOW}${cwd}${NONE}"; /usr/bin/tput sgr0'
if ( -o /bin/su ) then
set prompt="%B%{${LT_PURPLE}%}%h %{${NONE}%}# %b"
else
set prompt="%B%{${LT_PURPLE}%}%h %{${NONE}%}% %b"
endif
作者: terminator 发布时间: 2004-01-30
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28