Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a vertical space in 'Terminal' after each command?

Tags:

terminal

macos

I've just started using Terminal (the CLI for Mac OS X).

When I run a command, get some information back, run another command, get more info etc., it is hard (on the eyes) to find a certain point on the screen (e.g. the output for the command before last).

Is there a way of adding a vertical empty space to the end of each output/ after each command is run that has no output?

like image 898
User 17670 Avatar asked Oct 05 '13 15:10

User 17670


1 Answers

Each new command that you enter is preceded by a "prompt", and these can be customized (though the exact way to customize depends on the shell). Since you mention Mac OS X I'm assuming you are using the default bash shell, in which case the absolute simplest way to add a blank line is like this: PROMPT_COMMAND=echo. You can run that command to try it out, or add it to a startup file (like .profile in your home folder) to have it done automatically each time.

like image 73
Kevin Grant Avatar answered Sep 23 '22 20:09

Kevin Grant