I am trying to set the LS_COLORS environment variable using a launcher script. However this variable is not being set.
Downloaded LS_COLORS to ~/.dircolors
Added TERM=xterm-newTerminalEmulator where all the other TERM variables were defined in .dircolors
Created a launcher script in ~/bin/ls
Populated this launcher script with the shebang,
evalto pass the strings in bracket as a command to the shell and
execto replace all processes with just the
#!/bin/sh eval $(dircolors -b ~/.dircolors) exec /bin/ls "$@"
The man page for dir_colors says
Usually, the file used here is /etc/DIR_COLORS and can be overridden by a .dir_colors file in one's home directory.
Would this be why its not working, considering only the system wide /etc/DIR_COLORS script is being used?
I also have an alias for
ls set as alias ls = "ls --color" and
echo $LS_COLORS shows nothing.
System specifications are: fedora28 and bash
I got this working, but I am not satisfied with the colors. The defaults are more intuitive, not only this but LS_COLORS does not differentiate between executables and symlinks which is a deal breaker.