0

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

Zanark
  • 63
  • 2
  • 5

1 Answers1

0
trap echo DEBUG
PS1="prompt >> "

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

Kevin Cui
  • 766
  • 1
  • 6
  • 8