diff --git a/home/user/.config/zsh/calculator b/home/user/.config/zsh/calculator index 19ef42d..36e29e5 100644 --- a/home/user/.config/zsh/calculator +++ b/home/user/.config/zsh/calculator @@ -1,4 +1,7 @@ # calculator + +export ZCALC_HISTFILE="${HOME}/.zcalc_history" + autoload -U zcalc function __calc { diff --git a/install-hooks/zsh/post-install b/install-hooks/zsh/post-install index 89857fc..dfe08e1 100755 --- a/install-hooks/zsh/post-install +++ b/install-hooks/zsh/post-install @@ -1,26 +1,12 @@ #!/usr/bin/env zsh -readonly zfiles=( - .zshenv - .config/zsh/.zshrc - .config/zsh/.zprofile - .config/zsh/.zlogout - .config/zsh/aliases - .config/zsh/completion - .config/zsh/history - .config/zsh/options - .config/zsh/other - .config/zsh/plugin - .config/zsh/calculator - .config/zsh/prompt - .config/zsh/mappings - .config/zsh/sourcer - .config/zsh/export - .config/zsh/functions +zfiles=( + ~/.zshenv ) +zfiles+=($(find "${ZDOTDIR}/" -maxdepth 1 -type f -not -name '*.zwc')) for zfile in "${zfiles[@]}" do - zcompile "${HOME}/${zfile}" + zcompile "${zfile}" done \ No newline at end of file