linux(ubuntu)切换用户后出现 -bash-$

这说明你的默认shell 不是bash。

修改方法