Do your own Xshell solarized dark theme

Source: Internet
Author: User

solarized Dark Themes

  1. <color>
  2. [Solarized Dark]
  3. Text (bold) =839496
  4. Magenta (bold) =6c71c4
  5. text=839496
  6. White (bold) =fdf6e3
  7. green=859900
  8. Red (bold) =cb4b16
  9. Green (bold) =586e75
  10. Black (bold) =073642
  11. red=dc322f
  12. Blue=268bd2
  13. Black=002b36
  14. Blue (bold) =839496
  15. Yellow (bold) =657b83
  16. Cyan (bold) =93A1A1
  17. yellow=b58900
  18. magenta=dd3682
  19. background=042028
  20. White=eee8d5
  21. cyan=2aa198
  22. [Names]
  23. Count=1
  24. Name0=solarized Dark
Save as Soloarizedcolor.xcs.
Tools-->color Schemes-->import just that file in Xshell. Then you modify the value of the ls_colors variable for the system:


  1. 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
  2. Source/etc/bashrc

If you do not want to modify/ETC/BASHRC, you can customize the ls_colors for each user, which is all set to the default value.
such as script: Soloarizedcolor.sh


  1. #!/bin/bash
  2. Get_user ()
  3. {
  4. User= ' awk-f: ' $ >= $ {print $ '/etc/passwd '
  5. For u in $user
  6. Do
  7. If [-D "/home/$u"]; Then
  8. Echo $u
  9. Fi
  10. Done
  11. echo Root
  12. }
  13. Get_dir ()
  14. {
  15. For u in [email protected]
  16. Do
  17. if [$u = = "root"]; Then
  18. echo "/root"
  19. Else
  20. echo "/home/$u"
  21. Fi
  22. Done
  23. }
  24. User= ' Get_user '
  25. Dir= ' Get_dir $user '
  26. For-D in $dir
  27. Do
  28. 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;0 5;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 "
  29. Done
  30. SOURCE ~/.BASHRC

Do your own Xshell solarized dark theme

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.