I'm a long-time bash user just getting used to running zsh, oh-my-zsh, and powerline. I like the setup very much, but have one frustration I can't figure out how to solve.I occasionally need to copy & paste terminal sessions into emails, text documents, etc. With the default powerline setup, the special characters cause grief, so my thought is to switch my zsh theme to a plain ascii theme. Unfortunately, I can't figure out how to do that from the command line. I'm sure it's possible, but I can't quite figure out the interaction between powerline and the shell to wire it up.My suggested workflow would be:Open shell sessionDo work as normalSwitch themes to an ascii only theme (which powerline includes apparently)Do work for copy/pasteSwitch themes back to my previous oneI'm comfortable with scripting this as a script or alias, but I can't quite figure out how to start. My google-fu is weak when searching for things like change powerline theme dynamically, change zsh prompt dynamically, etc.Things I've tried:Manually setting the prompt: PS1=\$ . That sets the left side prompt just fine, but doesn't clear the right side prompt (which usually has git information in my setup)Manually applying a theme: source ~/.oh-my-zsh/themes/my-plain-ascii.zsh-theme. Still doesn't clear the right side promptAnd I'm still unsure how to re-apply my powerline defaults after I'm finished, short of source ~/.zshrc, which works, but seems heavyweight.
Interactively switching zsh themes while running powerline
zsh;oh my zsh
You should be able to source the ascii theme, then unset or clear the RPROMPT variable. So something likesource ~/.oh-my-zsh/themes/my-plain-ascii.zsh-themeunset RPROMPT<your work for copying and pasting>source <powerline-install-directory>/bindings/zsh/powerline.zshOf course, you could always just add the unset RPROMPT line to your custom zsh-theme.