The only way which worked for me with Tabby is to add the following in the .zshrc file:
if [[ -n "$TABBY_HISTFILE" ]]; then export HISTFILE="$TABBY_HISTFILE" fi Then in each Tabby profile set the path for a separate history file by adding a TABBY_HISTFILE environment variable.
For example:
TABBY_HISTFILE = /Users/<username>/TabbyHistory/.zsh_history_profile_a Make sure to re-open the profile in Tabby and run fc -W to force write the new history file.