You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pscale shell creates a history file by default in $HOME/.pscale/history. While this is not an error, I think the CLI should respect an OS (or the user’s) XDG base directory settings. The history file should be placed under XDG_DATA_HOME: on Mac, it should go under ~/Library/Application \Support/.pscale and on most Unix-like operating systems, it should go under $HOME/.local/share.
I’d be happy to make a PR if you guys agree with the change.
The text was updated successfully, but these errors were encountered:
Closes: #429
This updates the CLI to use XDG_DATA_HOME for the location of the users history file.
The [xdg package](https://github.com/adrg/xdg) takes care of returning the path based on the operating system and creating the directory if it is not present.
pscale shell
creates a history file by default in$HOME/.pscale/history
. While this is not an error, I think the CLI should respect an OS (or the user’s) XDG base directory settings. The history file should be placed underXDG_DATA_HOME
: on Mac, it should go under~/Library/Application \Support/.pscale
and on most Unix-like operating systems, it should go under$HOME/.local/share
.I’d be happy to make a PR if you guys agree with the change.
The text was updated successfully, but these errors were encountered: