lemnos / theme.sh

A script which lets you set your $terminal theme.
Other
912 stars 45 forks source link

remove test for history file in configuration snippets in README #49

Open jrd-oje opened 11 months ago

jrd-oje commented 11 months ago

theme -l outputs a valid list, even if .theme_history does not exist. Furthermore, the location of the theme_history file depends on whether XDG_CONFIG_HOME is set or not.

config_dir = (ENVIRON["XDG_CONFIG_HOME"] ?  ENVIRON["XDG_CONFIG_HOME"] : ENVIRON["HOME"])

Omitting the test would therefore make the configuration more robust against changes to the theme_history file location.