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

Consistent template directories across mac/linux #588

Open
jritsema opened this issue Oct 25, 2024 · 2 comments
Open

Consistent template directories across mac/linux #588

jritsema opened this issue Oct 25, 2024 · 2 comments

Comments

@jritsema
Copy link

I would like to be able to use the same templates path on both mac and linux. Is this possible? It appears that they're different:

mac - $HOME/Library/Application Support/io.datasette.llm/templates/

linux - $HOME/.config/io.datasette.llm/templates/

I noticed LLM_USER_PATH but this appears to change the entire base directory.

The reason for the ask is that I'd like to be able to store my commonly used prompts in my dot files repo (which works on both mac and linux).

Any thoughts/recommendations?

@simonw
Copy link
Owner

simonw commented Oct 28, 2024

I noticed yesterday that uv changed their policy and stopped using the Library directory, instead switching to the same ~/.cache location on both platforms:

I'm now considering if that would make sense for LLM, since their reasoning was that Library is better for GUI apps than for terminal application.

Not decided yet. For the moment you may be able to solve this using a symlink?

@jritsema
Copy link
Author

jritsema commented Nov 9, 2024

Thanks @simonw. Yes, I was planning on symlinking to my dotfiles, but was wanting to avoid using if mac else if linux logic for destination path.

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

No branches or pull requests

2 participants