Edit how directories are shown when type ls
#5261
-
What Operating System(s) are you running on?Windows Which Wayland compositor or X11 Window manager(s) are you using?I'm running on Windows 11 but mostly on WSL2 with Ubuntu 22.04.3 WezTerm version20240203-110809-5046fc22 Ask your question!Is it possible to edit how directories are displayed when we Ideally I could change the font color, remove the highlight (background color) and add a I research in docs and discussions for those tags: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not the terminal that you need to configure to change For example to add a / after directories you call For colors, |
Beta Was this translation helpful? Give feedback.
This is not the terminal that you need to configure to change
ls
's output format & style, butls
itself!For example to add a / after directories you call
ls -F
. Read about the other flags you can use with ls withman ls
andls --help
For colors,
ls
is configured using theLS_COLORS
environment variable, see this tutorial: https://www.howtogeek.com/307899/how-to-change-the-colors-of-directories-and-files-in-the-ls-command/