[建议]深度终端中的命令行字体是否可与输出字体有所区别?
Tofloor
poster avatar
kingskill
deepin
2015-08-01 18:33
Author
如下图:红线所指示的命令行字体颜色和输出内容的颜色都一样,有时候输出内容繁杂,和命令行混在一起很难区分。

是否可以做个有不同颜色的设置选项?



Reply Favorite View the author
All Replies
Tonys
deepin
2015-08-01 18:50
#1
这个建议好,希望深度终端V2.0有此功能。
Reply View the author
ArthurDeepin
deepin
2015-08-01 19:24
#2
本帖最后由 ArthurDeepin 于 2015-8-1 12:16 编辑

我也提过类似的建议了,我建议是用背景底色区分,采纳了
https://bbs.deepin.org/post/29481
Reply View the author
ArthurDeepin
deepin
2015-08-01 19:33
#3
印象中提示符的颜色是可以配置的,zsh的主题很多就更不用说了
Reply View the author
kingskill
deepin
2015-08-01 20:26
#4
https://bbs.deepin.org/post/31722
印象中提示符的颜色是可以配置的,zsh的主题很多就更不用说了

求具体配制方法~~
Reply View the author
BingoLove
deepin
2015-08-01 20:32
#5
本帖最后由 BingoLove 于 2015-8-1 12:35 编辑

看图楼主应该不是zsh而是bash,我记得zsh默认就是有颜色的,bash提示符可以由PS1控制,具体如何使用可看这个 http://my.oschina.net/u/1424781/blog/324736   和 这个 http://www.askoracle.org/member/ ... rchives&aid=697
我以前用的是这个,把下面这个加到 .bashrc 就行
  1. PS1='\[\033[01;32m\][\[\033[01;31m\]\#\[\033[01;32m\]] \[\033[01;32m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\w \[\033[01;31m\]\$\[\033[0m\] '
Copy the Code

直接在终端粘贴看效果(我的终端配色默认字体改成了白色,默认的绿色很费眼睛)
  1. export PS1='\[\033[01;32m\][\[\033[01;31m\]\#\[\033[01;32m\]] \[\033[01;32m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\w \[\033[01;31m\]\$\[\033[0m\] '
Copy the Code
Reply View the author
MattD
deepin
2015-08-01 20:38
#6
我喜欢Gentoo的配色,公司内网一台ubuntu测试服务器也被我换成了Gentoo的bashrc配色。
Reply View the author
kingskill
deepin
2015-08-01 20:53
#7
https://bbs.deepin.org/post/31722
看图楼主应该不是zsh而是bash,我记得zsh默认就是有颜色的,bash提示符可以由PS1控制,具体如何使用可看这 ...

哇,这个好酷。。。大赞~~
Reply View the author
kingskill
deepin
2015-08-01 21:17
#8
https://bbs.deepin.org/post/31722
看图楼主应该不是zsh而是bash,我记得zsh默认就是有颜色的,bash提示符可以由PS1控制,具体如何使用可看这 ...

/etc里好像只有bash.bashrc,是这个吗?我用管理员身份,加进去了,但好像没用。
Reply View the author
BingoLove
deepin
2015-08-01 21:20
#9
kingskill 发表于 2015-8-1 13:17
/etc里好像只有bash.bashrc,是这个吗?我用管理员身份,加进去了,但好像没用。 ...

是用户目录下的,~/.bashrc
Reply View the author
kingskill
deepin
2015-08-02 18:54
#10
https://bbs.deepin.org/post/31722
是用户目录下的,~/.bashrc

ok了。。。大谢~~{:4_102:}
Reply View the author