We can run the following command to do so: LS_COLORS="di=1:31:*.desktop=4 36" desktop file extension an underlined cyan color, as well. Let’s say we want to make files with the. However, this is just a very simple LS_COLORS variable that defines directories as one color and leaves every other type of file as the default color. The di=1 31 bit tells ls that directories ( di) are ( =) bold ( 1 ) red ( 31). We can run the following command to do so: LS_COLORS="di=1 31" Let’s say we want to change the color of directories from the default bold blue to bold red. Let’s start a basic example to demonstrate how this works. The default list is long because it specifies different colors for a number of different file types. The LS_COLORS variable contains a list of file types along with associated color codes. However, this makes it easy to do so with a single, quick command. You can always sign out and sign back in or close and reopen a terminal window to restore the colors to their default setting. Your changes are always temporary until you edit a file to make them your new defaults.
0 Comments
Leave a Reply. |