0

I'd like to put the insertion cursor of bash inside the PS1 variable:

export PS1='\u@\h:<cursor here>:\w'

Where the colons are included in the prompt (typing enter should result in a string "::"). Is this possible?

  • 1
    Why do you need this? – muru Feb 10 '17 at 22:01
  • @muru: I'd like to investigate how one could implement a lisp shell by automatically surrounding the cursor with () to make it more practical. –  Feb 11 '17 at 06:19
  • @UltimateHawk Forgive me if this is ignorant, but I've never used Lisp: What does that have to do with your question? – wjandrea Apr 24 '17 at 22:29

0 Answers0