蜗客网靠谱吗的单子靠谱吗

永久设置SecureCRT的背景色和文字颜色方案_最火下载站
您的位置: >
> 永久设置SecureCRT的背景色和文字颜色方案
永久设置SecureCRT的背景色和文字颜色方案
  SecureCRT改颜色方案为Traditional大家都会了,但是好多人只会修改单一标签的,这样每次新建会话都要重新修改,太麻烦了。今天告诉大家如何一劳永逸修改颜色方案为Traditional(黑色背景,绿色字符)。
  这里我用的是中文版,英文版一样。
  1、点击&选项&(Options)-&全局选项&(Global options)
  2、左边选择&默认会话&(Default Session)
  3、右边选择&编辑默认设置&(Edit default setting)
  4、左边选择&外观&(Appearance)
  5、右边的&当前颜色方案&(Current color scheme),选择&Traditional&,确定
  6、弹出的对话框选择&是&(yes)保存为默认配置。
  7、以后再创建新的会话就会使用Traditional颜色方案了。
上一篇: 下一篇:之所以我们这么喜欢OS X,是它自带了command line工具,但是Apple厂商为Terminal设置很多的默认值,导致界面很丑没有什么颜色我们很伤心,同时我们希望界面是五颜六色的,至少是彩色的。我们需要在Terminal输入&ls&,如下图:
我在网络上找了几个如何调整颜色的方案,尽管可以用,但大多数是需要对安装一些主题,过于麻烦,
在我查看了&man ls&帮助后,找到不用安装任何主题,一个超级简单的解决方案.
具体设置步骤如下:
1) 打开Terminal终端.&看到的配色方案这样的:
2) 输入如下命令: &vi ~/.bash_profile 并把下面的粘贴到这个文档保存.
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
再输入:&source ~/.bash_profile 初始化配置让当前窗口生效
你应该看到现在已经有颜色了,如下:
CLICOLOR=1 &// 让你的终端的着色.
LSCOLORS=& //&指定如何着色的具体项目.
3) 要添加更多的色彩获取更多的色彩提醒,保持之前添加的行,并在后面追加。
export TERM="xterm-color"
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
设置后你应该能看到username 和 command line 已经有了颜色:
以上就是所有步骤,亲测有效
上面所有信息都是翻译过来的,如有不对,欢迎指正&
原文链接:/how-to-change-mac-os-x-terminal-color/
阅读(...) 评论()公司里用ubuntu,现在在osx下用命令行,默认是白底黑字的,怎么看都不舒服。
上网找了下命令行终端的配色方案,看到有一个叫做Solarized的方案,试了下,感觉不错,在此记录之。
先下载Solarized
$ git clone git:///altercation/solarized.git
如果你使用的是 Terminal 的话,在 solarized/osx-terminal.app-colors-solarized 下双击 Solarized Dark ansi.terminal 和 Solarized Light ansi.terminal 就会自动导入两种配色方案 Dark 和 Light 到 Terminal.app 里。
如果你使用的是 iTerm2 的话,到 solarized/iterm2-colors-solarized 下双击 Solarized Dark.itermcolors 和 Solarized Light.itermcolors 两个文件就可以把配置文件导入到 iTerm 里。
Vim下的配色方案要自己配置一下
$ cd solarized
$ cd vim-colors-solarized/colors
$ mkdir -p ~/.vim/colors
$ cp solarized.vim ~/.vim/colors/
$ vi ~/.vimrc
syntax enable
set background=dark
colorscheme solarized
ls呢,这个貌似一般,用系统自带的吧
$ vi ~/.bash_profile
export CLICOLOR=1Unix(28)
Terminal 下不同类型的文件显示不同的颜色
Terminal 默认的 shell 是 bash (提示符是 $)
在 ~ 先建立一个文件&&~/.bash_profile&
加入下面的两行:
export CLICOLOR=1
export LSCOLORS=gxfxaxdxcxegedabagacad
存盘, 退出Terminal, 重起Terminal.
更改LSCOLORS可以有不同的颜色效果。&
-----------------------------------------------------
如果你用的是 csh/tcsh (提示符是 %), 建立&&~/.cshrc 加入
setenv CLICOLOR 1
setenv LSCOLORS gxfxaxdxcxegedabagacad
存盘, 执行 source ~/.cshrc
------------------------------------------------------
LSCOLORS 的含义:
& & LSCOLORS The value of this variable describes what color to use
& & for which attribute when colors are enabled with
& & CLICOLOR. This string is a concatenation of pairs of the
& & format fb, where f is the foreground color and b is the
& & background color.
& & The color designators are as follows:
& & a black
& & c green
& & d brown
& & e blue
& & f magenta
& & g cyan
& & h light grey
& & A bold black, usually shows up as dark grey
& & B bold red
& & C bold green
& & D bold brown, usually shows up as yellow
& & E bold blue
& & F bold magenta
& & G bold cyan
& & H looks like bright white
& & x default foreground or background
& & Note that the above are standard ANSI colors. The actual
& & display may differ depending on the color capabilities of
& & the terminal in use.
& & The order of the attributes are as follows:
& & 1. directory
& & 2. symbolic link
& & 3. socket
& & 4. pipe
& & 5. executable
& & 6. block special
& & 7. character special
& & 8. executable with setuid bit set
& & 9. executable with setgid bit set
& & 10. directory writable to others, with sticky bit
& & 11. directory writable to others, without sticky
& & The default is “exfxcxdxbxegedabagacad”, i.e. blue fore-
& & ground and default background for regular directories,
& & black foreground and red background for setuid executa-
& & bles, etc.
&&相关文章推荐
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:186548次
积分:3541
积分:3541
排名:第8468名
原创:173篇
转载:30篇
评论:23条
(5)(15)(16)(10)(8)(7)(14)(19)(6)(10)(5)(6)(15)(3)(5)(2)(2)(3)(6)(5)(2)(1)(4)(9)(1)(2)(3)(2)(7)(8)

我要回帖

更多关于 加入蜗客网 的文章

 

随机推荐