From b79d9dd604bb3134f3ccd7f8d1f7f2d21247d520 Mon Sep 17 00:00:00 2001 From: Matthew Trzcinski Date: Mon, 15 Jan 2024 20:57:20 +0100 Subject: [PATCH] lisp/ob-shell.el: Remove unnecessary prompt template (org-babel-shell-set-prompt-commands): "posh" is POSIX complaint and uses PS1 and PS2 to define the shell prompt. A separate template is not needed. Link: https://list.orgmode.org/18cfa388d12.f0069ffe919377.6846036599039377431@excalamus.com/ --- lisp/ob-shell.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el index 77e73d098..31135b5fb 100644 --- a/lisp/ob-shell.el +++ b/lisp/ob-shell.el @@ -52,8 +52,6 @@ ("fish" . "function fish_prompt\n\techo \"%s\"\nend") ;; prompt2 is like PS2 in POSIX shells. ("csh" . "set prompt=\"%s\"\nset prompt2=\"\"") - ;; PowerShell, similar to fish, does not have PS2 equivalent. - ("posh" . "function prompt { \"%s\" }") ;; PROMPT_COMMAND can override PS1 settings. Disable it. ;; Disable PS2 to avoid garbage in multi-line inputs. (t . "PROMPT_COMMAND=;PS1=\"%s\";PS2="))