sos4nt / dynamic-colors

Change terminal colors on the fly
MIT License
198 stars 42 forks source link

Separate config and automatically find root path #8

Open maltoe opened 9 years ago

maltoe commented 9 years ago

Hi Stefan,

this adds automatic root path resolution. I wanted to symlink the script to my local bin directory instead of modifying PATH. Could have set the environment variable instead, but I figured it would be nice if the script would autolocate its data.

The second patch separates the configuration (i.e. the colorscheme file :) from the code, storing it at XDG_CONFIG_HOME or below HOME, if the former is not available.

Cheers malte