wrap bash prompt into local or remote conditional.