xshell 配色方案
来源:互联网 发布:云智能网络 编辑:程序博客网 时间:2024/06/07 21:13
首先推荐几个不错的xshell配色方案:
https://github.com/dequan/xshell-cs
具体配置:
1)把下面代码保存到一个文件里,文件名为:Solarized Dark.xcs
[Names]count=1name0=Solarized Dark[Solarized Dark]text(bold)=839496magenta(bold)=6c71c4text=00ff40white(bold)=fdf6e3green=859900red(bold)=cb4b16green(bold)=586e75black(bold)=073642red=dc322fblue=268bd2black=002b36blue(bold)=839496yellow(bold)=657b83cyan(bold)=93a1a1yellow=b58900magenta=dd3682background=042028white=eee8d5cyan=2aa1982) 打开X Shell 4->Tools->Color Schemes,导入该配置
3)颜色字体设置在Files->Properties
4)设置LS_COLOR
echo "LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'" >> /etc/bashrc
source /etc/bashrc
5)如果不想修改/etc/bashrc,可以为每个用户定制LS_COLORS,这里全部设为默认值.
如脚本:SoloarizedColor.sh
#!/bin/bashget_user (){ user=`awk -F : '$3 >= 500 {print $1}' /etc/passwd` for u in $user do if [ -d "/home/$u" ]; then echo $u fi done echo root}get_dir (){ for u in $@ do if [ $u == "root" ]; then echo "/root" else echo "/home/$u" fi done}user=`get_user`dir=`get_dir $user`for d in $dirdo echo "LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'" >> "$d/.bashrc"donesource ~/.bashrc
0 0
- xshell 配色方案
- xshell配色方案
- xshell配色方案
- Xshell配色方案说明
- xshell经典配色方案
- XShell配色方案(总结)
- Xshell 配色方案
- XShell自定义配色方案
- [isayme]Xshell配色方案
- xshell 两个配色方案
- Xshell配色方案
- xshell护眼配色方案
- xshell配色方案
- XShell 配色方案 方案1
- XShell 配色方案 方案2
- 我的xshell配色方案
- xshell配色方案comfort color
- Xshell 配色方案[Solarized Dark 修改版]
- Maximum Depth of Binary Tree
- linux启动流程图
- matlab学习笔记009之solve函数
- 给程序员的建议
- 重写
- xshell 配色方案
- 开源MSP430F147单片机软核添加自定义外设
- 10785 - The Mad Numerologist
- libxml2对XML文件的创建、解析、查找、修改
- Linux设备模型(三)platform
- [性能调整] ORACLE分区表、分区索引详解(转)
- Leetcode: Subsets
- Lightoj 1170 卡特兰数+扩展欧几里得算法
- ARM7 Timer与DMA的register