Search code examples
bashmacosterminalformatline-breaks

Is there a way to make my bash shell on mac enter a line break after each command?


I just started programming and find it hard to read through the lines of code to find where to start right after my command so it'd be nice to see line breaks before each prompt reappears.


Solution

  • in, ~/.bash_profile, set PS1 to change the prompt. Start it with a newline, and then your terminal output will have a blank line between the last line of the command output and the prompt.

    More details on how you can customize the prompt: here