I am trying to add a battery blugin to my prompt https://github.com/Goles/Battery.
PROMPT="╭─${user_host} ${current_dir} ${git_branch} `battery`
╰─%B$%b "
RPS1="${return_code}"
I need to escape the percent sign, which can be done by getting the string output and then replacing it with two parenthesis, but I have failed at scripting that. My prompt looks like the top line but I want it to appear like it is in the third line. Any easy fixes to this?