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

Add clanvas directory which will contain rcfile and future files for caches, history, etc. #6

Open
rowdyrotifer opened this issue Oct 13, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rowdyrotifer
Copy link
Owner

Currently, if we want to add command history, or any sort of cache that persists longer than a session, we would need to choose more arbitrary files / locations to put them in. Instead, let's start by making this a configurable directory.

Check for an environment variable called CLANVASHOME, if it is set, then use that value.

Otherwise / by default set this value to a .clanvas folder in the user's home directory.

In order to consolidate the growing number of files, move ~/.clanvasrc to clanvas_data_directory/rcfile.

On startup, if this directory does not exist, create it. Also on startup, if the rcfile does not exist, create it (but leave it empty).

@rowdyrotifer rowdyrotifer added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant