metamage_1
metamage_1 copied to clipboard
MacRelix: PWD in sh's PS1
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 /.
I wonder how difficult it would be to just port bash or zsh to macrelix...