Sharing the Xshell health color scheme facilitates eye protection

Source: Internet
Author: User
Tags current time

Solution 1


Xshell is an easy-to-use software for development on Windows, but the default color scheme is too unfriendly and it is prone to visual fatigue. Next I will share a color scheme code I have been using, [Solarized_Dark]. It feels pretty good.

[Names]
Count = 1
Name0 = Solarized Dark
[Solarized Dark]
Text (bold) = 839496
Magenta (bold) = 6c71c4
Texts = 839496
White (bold) = fdf6e3
Green = 1, 859900
Red (bold) = cb4f8
Green (bold) = 586e75
Black (bold) = 073642
Red = dc322f
Blue = 268bd2
Black = 002b36
Blue (bold) = 839496
Yellow (bold) = 657b83
Cyan (bold) = 93a1a1
Yellow = b58900
Magenta = dd3682
Back Ground = 042028
White = eee8d5
Cyan = 2aa198

All you need to do is copy the following code, save it to the newly created file [Solarized_Dark.xcs], and then open Xshell to [tools] [color scheme] [import] in sequence.


Solution 2:


Click the following button at the top of the Xshell panel.


Click the Browse button. The following panel is displayed. Select ANSI Colors on Black and click the save as button on the right to name zkl.

Here we are actually copying an ANSI Colors on Black color scheme, or we can also create a New scheme.

The ANSI color is very nice. Here we use the ANSI color and modify it to get the desired color scheme.


Then, click the edit button on the right to edit the foreground color and background color.

1. Set the background color

Click the drop-down list on the right of Backgroud, select other in the pop-up interface, and click custom color. The following page is displayed:

Fill in the color according to the following rgb values, (, 53)

Click Add to M Colors to Add the Custom color to custom colors in the left-side pane and select it. OK.


2. Set the font color (foreground color)

Click Normal Text to set it.

Rgb color: (131,148,150)


3. Set the directory color


The color rgb value is as follows: (128,128,255)


4. Set the compressed file color

In the ANSI color, the color of the compressed file is Red by default, which does not affect the line of sight. If you feel bad, you can adjust it to the following color:


The color rgb values are as follows: (128,128, 0)


5. Set the color of comments in VIM.

After the above settings, the xshell background color, font color, linux directory, and compressed file color are all pretty good. The effect is as follows.


But when we open vim and edit a c ++ file, we will find that the color of the comment is not very nice. You need to set it again.


Set the following color:

Rgb color: (255,128, 64)


The modified code file is displayed as follows:


6. Export the color scheme

Xshell is very powerful and has various functions. The color scheme we set can also be exported and saved. When we use it on other machines, we can import the color scheme.

The import and export options in the following interface can be used to import and export the color scheme. The following file shows the corresponding color scheme file for the above configuration:


Download this file from the Youdao Note link.


Additional: Set the command line prompt

The user name, current machine IP address, current time, current path, and other information are displayed at the command line prompt. However, if our directory is very long and it is inconvenient to press the Command, you can modify the PS1 environment variable to display the command prompt in the second line:

In the following example, \ n is followed by the prompt $ displayed in the second line.

Export PS1 ="

\ 033 [01; 31m \ u

\ 033 [00m @

\ 033 [01; 32m10. 185.25.htm

\ 033 [00 m [

\ 033 [01; 33m \ t

\ 033 [00 m]:

\ 033 [01; 34m \ w

\ 033 [00m \ n $"

Or

Export PS1 ="

\ 033 [01; 31m \ u

\ 033 [00m @

\ 033 [01; 32m \ h

\ 033 [00 m [

\ 033 [01; 33m \ t

\ 033 [00 m]:

\ 033 [01; 34m \ w

\ 033 [00m \ n $"

The effect is as follows:


Note:

Set the color. You can adjust the color according to the display effect, which is flexible.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.