Sample Header Ad - 728x90

Why is mycli history file appearing in home directory?

0 votes
1 answer
100 views
I started using [mycli](https://github.com/dbcli/mycli) and want $HOME/.mycli-history to be generated and updated from $HOME/.cache/mycli/.mycli-history 1. Moved $HOME/.myclirc -> ~/.config/mycli/.myclirc 1. Created alias mycli='sudo mycli --myclirc ~/.config/mycli/.myclirc' 1. Updated log_file = ~/.cache/mycli/.mycli.log in .myclirc 1. Moved $HOME/.mycli.log to ~/.cache/mycli/.mycli.log These steps were successful for the rc and log files. I did not get much from searching online or their Documentation, but saw [this answer](https://github.com/dbcli/mycli/issues/647#issue-357617425) and added export MYCLI_HISTFILE="~/.cache/mycli/.mycli-history" to my .zshrc. After restarting my shell, my history file is still being populated in $HOME. Is there any command line flag, environment variable, or configuration that can change this? If not, would my only option be to symlink it? Using mycli v1.27.0 in zsh on MacOS Sonoma 14.2.1
Asked by Vivek Jha (155 rep)
Mar 1, 2024, 08:18 PM
Last activity: Mar 3, 2024, 04:25 PM