Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On macOS I have this in my .profile:

   alias ls="ls -GF"
   export LSCOLORS="Exfxcxdxbxegedabagacad"
-G Enables colorized output

-F Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable, an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar (`|') after each that is a FIFO.

The filename/dirname is colored and the character denoting the type is not colored, so I can tell what is part of a name and what denotes the file type.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: