Skip to content

Conversation

@jrd-oje
Copy link

@jrd-oje jrd-oje commented Nov 19, 2023

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 it .theme_history does not exists. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant