xshell的主题设置(内含主题配置文件)【护眼】

xshell的主题设置(内含主题配置文件)【护眼】


2023年12月31日发(作者:苹果6代)

设置Xshel主题

1、导入主题:

xshell主题_

2、设置LS_COLORS,通过env查看值,如相同可略过。

将下列复制到xshell会话框,执行:

alias ls='ls --color=auto'

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:'

export LS_COLORS

Xshell新主题效果如下:

linux下设置ls 命令 显示 文件、文件夹颜色

用 dircolors -p 可以 看到缺省的颜色设置,包括各种颜色和“粗体”,下划线,闪烁等定义。

而变量 $LS_COLORS 是设置颜色的变量;

如我的设置如下:

[plain] view plaincopy

1.

export LS_COLORS="no=00:fi=00:di=00;35: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/DIR_COLORS 文件为系统默认颜色参数配置文件

如果想修改定义自己的颜色参数配置文件,请执行如下操作:

1. cp /etc/DIR_COLORS $HOME/.dir_colors

2. 修改中的颜色定义 $HOME/.dir_colors

我的配置如下:

[plain] view plaincopy

1.

2.

3.

4.

5.

6.

7.

# Configuration file for the color ls utility

# This file goes in the /etc directory, and must be world readable.

# You can copy this file to .dir_colors in your $HOME directory to override

# the system defaults.

# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not

# pipes. 'all' adds color characters to all output. 'none' shuts colorization

8.

# off.

9.

COLOR tty

10.

11.

# Extra command line options for ls go here.

12.

# Basically these ones are:

13.

# -F = show '/' for dirs, '*' for executables, etc.

14.

# -T 0 = don't trust tab spacing when formatting ls output.

15.

OPTIONS -F -T 0

16.

17.

# Below, there should be one TERM entry for each termtype that is colorizable

18.

TERM linux

19.

TERM console

20.

TERM con132x25

21.

TERM con132x30

22.

TERM con132x43

23.

TERM con132x60

24.

TERM con80x25

25.

TERM con80x28

26.

TERM con80x30

27.

TERM con80x43

28.

TERM con80x50

29.

TERM con80x60

30.

TERM cons25

31.

TERM xterm

32.

TERM rxvt

33.

TERM xterm-color

34.

TERM color-xterm

35.

TERM vt100

36.

TERM dtterm

37.

TERM color_xterm

38.

TERM ansi

39.

TERM screen

40.

TERM

41.

TERM kon

42.

TERM kterm

43.

TERM gnome

44.

TERM konsole

45.

46.

# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)

47.

EIGHTBIT 1

48.

49.

# Below are the color init strings for the basic file types. A color init

50.

# string consists of one or more of the following numeric codes:

51.

# Attribute codes:

52.

# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed

53.

# Text color codes:

54.

# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white

55.

# Background color codes:

56.

# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

57.

NORMAL 00 # global default, although everything should be something.

58.

FILE 00 # normal file

59.

DIR 01;35 # directory

60.

LINK 01;36 # symbolic link

61.

FIFO 40;33 # pipe

62.

SOCK 01;35 # socket

63.

BLK 40;33;01 # block device driver

64.

CHR 40;33;01 # character device driver

65.

ORPHAN 01;05;37;41 # orphaned syminks

66.

MISSING 01;05;37;41 # ... and the files they point to

67.

68.

# This is for files with execute permission:

69.

EXEC 01;32

70.

71.

# List any file extensions like '.gz' or '.tar' that you would like ls

72.

# to colorize below. Put the extension, a space, and the color init string.

73.

# (and any comments you want to add after a '#')

74.

.cmd 01;32 # executables (bright green)

75.

.exe 01;32

76.

.com 01;32

77.

.btm 01;32

78.

.bat 01;32

79.

.sh 01;32

80.

.csh 01;32

81.

.tar 01;31 # archives or compressed (bright red)

82.

.tgz 01;31

83.

.arj 01;31

84.

.taz 01;31

85.

.lzh 01;31

86.

.zip 01;31

87.

.z 01;31

88.

.Z 01;31

89.

.gz 01;31

90.

.bz2 01;31

91.

.bz 01;31

92.

.tz 01;31

93.

.rpm 01;31

94.

.cpio 01;31

95.

.jpg 01;35 # image formats

96.

.gif 01;35

97.

.bmp 01;35

98.

.xbm 01;35

99.

.xpm 01;35

100.

.png 01;35

101.

.tif 01;35


发布者:admin,转转请注明出处:http://www.yc00.com/num/1703991674a1330413.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信