From 2eb84883cddaf4324902bfa8f6113178ab2ad0c4 Mon Sep 17 00:00:00 2001 From: thek4n Date: Sun, 16 Nov 2025 18:30:03 +0300 Subject: [PATCH] fix zcalc_histfile --- home/user/.config/zsh/accept_line | 4 ++-- install-hooks/zsh/post-install | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home/user/.config/zsh/accept_line b/home/user/.config/zsh/accept_line index dab5b15..e61f9ea 100644 --- a/home/user/.config/zsh/accept_line +++ b/home/user/.config/zsh/accept_line @@ -3,7 +3,7 @@ export ZCALC_HISTFILE="${HOME}/.zcalc_history" autoload -U zcalc function __calc { - zcalc -f -e "$*" + ZDOTDIR="${HOME}" zcalc -f -e "$*" } aliases[calc]='noglob __calc' aliases[=]='noglob __calc' @@ -22,4 +22,4 @@ function accept-line() { zle -N accept-line -# vim: ft=zsh \ No newline at end of file +# vim: ft=zsh diff --git a/install-hooks/zsh/post-install b/install-hooks/zsh/post-install index be2ec42..bccb276 100755 --- a/install-hooks/zsh/post-install +++ b/install-hooks/zsh/post-install @@ -1,5 +1,6 @@ #!/usr/bin/env zsh + zfiles=( ~/.zshenv ) @@ -10,4 +11,4 @@ for zfile in "${zfiles[@]}" do echo "zcompile ${zfile}" zcompile "${zfile}" -done \ No newline at end of file +done