From: martin f. krafft Date: Tue, 10 Mar 2020 18:01:14 +0000 (+0100) Subject: add run_on_load functionality X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/b6b8f018a4ab02d6b23abe65f65e78fbcb60ced6 add run_on_load functionality --- diff --git a/.zsh/zshrc/99-prefill_prompt b/.zsh/zshrc/99-prefill_prompt index 0b2562e..21555be 100644 --- a/.zsh/zshrc/99-prefill_prompt +++ b/.zsh/zshrc/99-prefill_prompt @@ -12,4 +12,9 @@ if [[ -n "$ZSH_PREFILL_CMD" ]]; then unset ZSH_PREFILL_CMD fi +if [[ -n "$ZSH_RUN_ON_LOAD" ]]; then + eval $ZSH_RUN_ON_LOAD + unset ZSH_RUN_ON_LOAD +fi + # vim:ft=zsh