diff --git a/global.funcs.zsh b/global.funcs.zsh index 4f2d19f..d7609ff 100644 --- a/global.funcs.zsh +++ b/global.funcs.zsh @@ -24,7 +24,7 @@ function zshlibs_update() pushd $zshlibs_install 2>&1 > /dev/null zbootstrap_message zlibs_update "git pull …" ( - git pull 2>&1 > "${HOME}/.log/z_zshlibs_update" & + git pull 2>&1 |zbootstrap_message zlibs_update & # > "${HOME}/.log/z_zshlibs_update" & ) zbootstrap_message zlibs_update "update done" popd 2>&1 > /dev/null @@ -100,7 +100,7 @@ function zconfig_checkload() if [[ ! ${zconfig_loaded[(r)${1}]} ]] then zbootstrap_message zbootstrap "sourcing config '$1'" - source -- $1 2>&1 >> "${HOME}/.log/z_zbootstrap.log" + source -- $1 2>&1 | zbootstrap_message zbootstrap # >> "${HOME}/.log/z_zbootstrap.log" zconfig_loaded+=("$1") zbootstrap_message zbootstrap "end sourcing config '$1'" else @@ -135,7 +135,12 @@ function zbootstrap_message() { local facility=$1 shift - echo "$(date -Ins) ${@}" >> "${HOME}/.log/z_$facility.log" + if [[ -n "${@}" ]] + then + echo "$(date -Ins) ${@}" >> "${HOME}/.log/z_$facility.log" + else + echo "$(date -Ins) $(cat)" >> "${HOME}/.log/z_$facility.log" + fi } function zshlibs_boot()