Is it possible to have a clickable link, in my PS1
, that opens a pop-up menu or something similar?
My scenario
I've personalized my .bashrc
, to show my PS1
as
user@machine: path #/$
and if I'm inside a git repository, it also show my branch and a different char for the status
user@machine: path [branch !] #/$
By the way, I got the code to do this here in Ask Ubuntu.
My idea
What I wanted was to click in the branch name, and a list of the downloaded branches is shown (with or without the option to change it).
I found some "dialog" and "select/choice" options for the pop-up menu, but couldn't find anything for the clickable link.