Open gwpl opened 6 months ago
I tried to define /etc/skel/.config/shell_gpt/.sgptrc in skeleton for new users , and encountered following problem, when I define paths using $HOME or ~:
/etc/skel/.config/shell_gpt/.sgptrc
$HOME
~
CHAT_CACHE_PATH=~/.cache/shell_gpt/chat_cache CACHE_PATH=~/.cache/shell_gpt/cache ROLE_STORAGE_PATH=~/.config/shell_gpt/roles
or
CHAT_CACHE_PATH=$HOME/.cache/shell_gpt/chat_cache CACHE_PATH=$HOME/.cache/shell_gpt/cache ROLE_STORAGE_PATH=$HOME/.config/shell_gpt/roles
sgpt is treating $HOME and ~ literally.
Support for ~ with os.path.expanduser(...) in https://github.com/TheR1D/shell_gpt/pull/429
os.path.expanduser(...)
I tried to define
/etc/skel/.config/shell_gpt/.sgptrc
in skeleton for new users , and encountered following problem, when I define paths using$HOME
or~
:or
sgpt is treating
$HOME
and~
literally.