metamage_1 icon indicating copy to clipboard operation
metamage_1 copied to clipboard

MacRelix: PWD in sh's PS1

Open Maffsie opened this issue 2 years ago • 1 comments

Hey! Thanks for your work on MacRelix, it's very impressive and I'm enjoying it so far. I wanted to customise my PS1 to indicate the current working directory, but I couldn't find any way to set that. Looking in the code, it seems like the contents of the current shell level's PS variable are just printed verbatim. Variable expansion would be something of a big ask and so I doubt you have any interest in implementing that, but perhaps there could be some basic "format-esque" parameters set in the PS1-4 variables that are replaced with information immediately before the prompt is printed? ie. setting PS1='%P %% ' would result in a normal prompt of "/ % " if the current working directory is /.

Maffsie avatar May 18 '22 21:05 Maffsie

I wonder how difficult it would be to just port bash or zsh to macrelix...

b- avatar May 23 '22 15:05 b-