From: martin f. krafft Date: Mon, 26 Jun 2017 13:52:34 +0000 (+0200) Subject: declare RPS1 in global scope X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/a6e7465221b0ad713b1d2417881129d969b4644b?ds=sidebyside declare RPS1 in global scope --- diff --git a/.zsh/themes/prompt_madduck_setup b/.zsh/themes/prompt_madduck_setup index 69cff73..100ce87 100644 --- a/.zsh/themes/prompt_madduck_setup +++ b/.zsh/themes/prompt_madduck_setup @@ -363,7 +363,7 @@ function make_rps1() { echo -n '%D{%d %H:%M:%S.%.}' echo } -RPS1=$(make_rps1) +typeset -g RPS1="$(make_rps1)" unfunction make_rps1 # vim:ft=zsh