Open jrd-oje opened 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.
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.
Omitting the test would therefore make the configuration more robust against changes to the theme_history file location.