博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CSH Multiline prompt(转)
阅读量:2451 次
发布时间:2019-05-10

本文共 1323 字,大约阅读时间需要 4 分钟。

CSH Multiline prompt(转)[@more@]

Copy the following into ~/.cshrc

set NONE="33[0m"

set BLACK="33[0;30m"

set DK_GRAY="33[1;30m"

set BLUE="33[0;34m"

set LT_BLUE="33[1;34m"

set GREEN="33[0;32m"

set LT_GREEN="33[1;32m"

set CYAN="33[0;36m"

set LT_CYAN="33[1;36m"

set RED="33[0;31m"

set LT_RED="33[1;31m"

set PURPLE="33[0;35m"

set LT_PURPLE="33[1;35m"

set BROWN="33[0;33m"

set YELLOW="33[1;33m"

set LT_GRAY="33[0;37m"

set WHITE="33[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 "

${LT_RED}${mhos

t}${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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8225414/viewspace-944882/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8225414/viewspace-944882/

你可能感兴趣的文章
软件测试应届生没有项目经历_为什么有些软件项目网站糟透了,而另一些却没有
查看>>
python入门测试教程_Python测试入门
查看>>
python概率编程_Python中的概率编程
查看>>
Python中的运算符和表达式
查看>>
读写csv文件python_用Python读写CSV文件
查看>>
python super_使用Python super()增强您的课程
查看>>
愚人节导入_愚人节Python恶作剧
查看>>
正则表达式科学计数法_数据科学家的正则表达式
查看>>
sql基础_SQL基础
查看>>
一个工作表可以有两个事件吗_你有两个工作
查看>>
Raul的新机器学习书!
查看>>
客户细分_客户细分初学者指南
查看>>
django迁移和创建_创建Django Oscar初始数据迁移
查看>>
python熊猫图案_熊猫备忘单–适用于数据科学的Python
查看>>
python制作可视化图表_可视化数据–用python覆盖图表
查看>>
双耳节拍 枕头_枕头3-0-0不在
查看>>
我第一次使用matplotlib
查看>>
spark中遇到的问题_ScienceCluster遇到Spark
查看>>
输入/help获取更多指令_更多HTTP / 2新闻
查看>>
rodeo python_Rodeo 1.0:台式机上的Python IDE
查看>>