branch: externals/org
commit b79d9dd604bb3134f3ccd7f8d1f7f2d21247d520
Author: Matthew Trzcinski <[email protected]>
Commit: Matthew Trzcinski <[email protected]>

    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/[email protected]/
---
 lisp/ob-shell.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el
index 77e73d0984..31135b5fbf 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="))

Reply via email to