zsh post hook

This commit is contained in:
thek4n 2024-11-04 20:13:23 +03:00
parent 2dd8b6d5a7
commit bd1c90c4a3
2 changed files with 7 additions and 18 deletions

View File

@ -1,4 +1,7 @@
# calculator
export ZCALC_HISTFILE="${HOME}/.zcalc_history"
autoload -U zcalc
function __calc {

View File

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