简体   繁体   中英

LSD (LSDeluxe) in Git Bash

I have tried using LSD and I have a small problem when I use it in CMD it looks very good. LSD in CMD

But when I type LSD in Git Bash the colors are not there but just some text LSD in Git

Does anyone, know how to fix it?

Its due to a bug which will be fixed soon, the temp fix is setting an alias to.bashrc

step 1: open git bash

if you have vscode

 code ~/.bashrc

or

 nano ~/.bashrc

step 2: copy the following command to.bashrc

alias ls="TERM=dumb lsd"

step 3: save the file and close the git bash terminal

step 4: reopen the git bash terminal and try using ls instead of lsd it should work when you use ls

ref link: https://github.com/Peltoche/lsd/issues/657#issuecomment-1128721665

also make sure you have the necessary fonts: https://github.com/Peltoche/lsd#prerequisites

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM