I'd like to show the current working directory on the right side of screen in bash terminal and no path before the prompt where it is shown now.

Ubuntu 18.04 LTS

  • 2
    Should it be in the same line? Or can it be in the line above (multiline prompt)? What is your research effort? What have you tried so far? Closely related: Right align part of prompt. – Kamil Maciorowski Mar 25 at 18:50
  • Yes. Same line. I've delved far and wide with nothing for what I'm looking for. My instructor has his prompt on the left of course but it's just user name. At the end (right screen) of that same line is the current path. – dubfactor Mar 26 at 6:53
  • How about asking the instructor then? Are you sure it's bash? Zsh does support this, I think (research RPROMPT). – Kamil Maciorowski Mar 26 at 7:00
  • ubuntu 18.04 terminal. I read all of the "closely related" and it all mainly puts a second line or useless data on the right. It's a Bootcamp. I asked instructor and he told me he'd show me in a minute then never did. It's so fast-paced in class that interruptions aren't too welcome. I may be able to play with some of the "closely related" scripts I saw and get ${PATH} in there somehow. – dubfactor Mar 26 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.