From 81e24bb6b78b98bf33a5cc7b2ba4644bcad3ac3f Mon Sep 17 00:00:00 2001 From: Shantanu Date: Thu, 13 Jun 2024 22:00:32 -0700 Subject: [PATCH] bash: add support for setting parameters --- cmd/setup/bash-preexec.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/setup/bash-preexec.sh b/cmd/setup/bash-preexec.sh index 0131c80..ed2222c 100644 --- a/cmd/setup/bash-preexec.sh +++ b/cmd/setup/bash-preexec.sh @@ -477,6 +477,10 @@ savvy_run_pre_cmd() { # space at the end is important PS1="${orignal_ps1} ${PROMPT_GREEN}done${PROMPT_RESET}"$' \U1f60e ' fi + + if [[ "${SAVVY_CONTEXT}" == "run" && "${SAVVY_NEXT_STEP}" -lt "${size}" ]] ; then + savvy internal set-param + fi }