Drive-by armchair comment: it seems like the obvious answer would be to change the prompt depending on what mode you're in?
Xonsh lets you freely mix python code and command invocations in a highly transparent way.
Drive-by armchair comment: it seems like the obvious answer would be to change the prompt depending on what mode you're in?