How to add a new line before output in xfce4-terminal

时间:2019-01-09 21:47:23

标签: bash terminal newline xfce

I want a to add some padding to outputs in the terminal like this

prompt >> command

output

prompt >> command

I know how to add a newline after the output, by appending a '\n' before PS1. However how do I add a newline after every command I enter.

Is there any other way to achieve this padding in xfce-4 terminal

1 个答案:

答案 0 :(得分:0)

trap echo DEBUG
PS1="prompt >> "

trap with DEBUG will run echo to create a newline before every command