www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23670] New: Add ability to not overwrite prompt (PS1)

https://issues.dlang.org/show_bug.cgi?id=23670

          Issue ID: 23670
           Summary: Add ability to not overwrite prompt (PS1)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: installer
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

I like installing the compiler via `curl -fsS https://dlang.org/install.sh |
bash -s dmd`, but it's annoying that it overwrites my terminal prompt.

So every time I install it I have to edit the file `vi 
~/dlang/dmd-<release>/activate` and comment out `export
PS1="(dmd-2.097.2)${PS1:-}"`.

Can we add the option to skip overwriting PS1?

--
Feb 04 2023