Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant