CaptainD
V2EX  ›  问与答

win10 终端 wsl 状态下字体过饱和

  •  
  •   CaptainD · Apr 4, 2022 · 2227 views
    This topic created in 1696 days ago, the information mentioned may be changed or developed.

    用 win10 terminal + WSL2 的时候,运行 “ls”命令,显示出来的文件名会变成绿色并且过饱和,根本看不清楚,要怎么搞,基本没用过 win10 系统开发

    就像这样

    3 replies  •  2022-04-05 12:48:47 +08:00
    noe132
    noe132
    Apr 4, 2022❤️3
    1
    这是因为权限是 777 ,而所有 windows 下的目录权限都是 777.
    你可以搜搜如何修改 777 目录背景色
    GeruzoniAnsasu
    GeruzoniAnsasu
    Apr 5, 2022❤️2
    2


    nightwitch
    nightwitch
    Apr 5, 2022
    3
    因为 NTFS 上的盘的权限是 777 ,显示就是这个样子。
    在你的 bashrc 或者 zshrc 里加一行这个,改一下 777 目录的字体颜色就可以了(具体的颜色选取可以看 https://geoff.greer.fm/lscolors/)

    LS_COLORS=$LS_COLORS:'ow=30;42:'; export LS_COLORS

    https://imgur.com/JFDNSJ0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:10 · PVG 11:10 · LAX 19:10 · JFK 22:10
    ♥ Do have faith in what you're doing.