From d572c865adfa6fd4bc948fd5e5abcc044db51efe Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Tue, 3 Sep 2024 02:27:17 +0800 Subject: [PATCH] nixos/foot: fix bash script --- nixos/modules/programs/foot/bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/programs/foot/bashrc b/nixos/modules/programs/foot/bashrc index 126f54721259..e35bc29f117b 100644 --- a/nixos/modules/programs/foot/bashrc +++ b/nixos/modules/programs/foot/bashrc @@ -12,16 +12,16 @@ osc7_cwd() { done printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}" } -PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }osc7_cwd +PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }osc7_cwd prompt_marker() { printf '\e]133;A\e\\' } -PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }prompt_marker +PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }prompt_marker PS0+='\e]133;C\e\\' command_done() { printf '\e]133;D\e\\' } -PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }command_done +PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }command_done