fix zcalc_histfile

This commit is contained in:
thek4n 2025-11-16 18:30:03 +03:00
parent 6a06ef5399
commit 2eb84883cd
2 changed files with 4 additions and 3 deletions

View File

@ -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
# vim: ft=zsh

View File

@ -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
done