Check out the screenshot below first, and the code if you prefer:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkjcjjeEQAuTwHZHXrl_tVtRcr23QmLNk3Uzp5Zro46UHbp0PMO8Tsp7KvUiJJzyHyf5l54wzbw13KCld3TqxNkDDs6EC5qhZwcbpv9jmXdiBiumgGj_miVsX72scC-4GPTD84R_aw4T0/s800/2013-07-23--11%253A37%253A25.png

When you run a series of commands and each shows some little fancy output, it becomes harder when you scroll back to look for a particular piece of certain command.

Two years ago, I made error codes have their own line. Since then, I sometimes hit Ctrl-C just to draw a separator line for clear visual division, so I could spot where another command was invoked easier, my simple shell prompt is fairly hard to distinguish from output.

It’s totally fine to trigger SIGINT for drawing the line. But it seems that if I have a more dedicated script for such purpose it would serve more properly.

So, - (dash separator) was born for that.

I think using - the hyphen-minus character might not be a good idea, but so far I didn’t see any problems. I could run it perfectly fine, option flags didn’t get confused, and it visually represents what it would be doing for the user.

By default, without any options, it simply prints out a line of -, hence the name of this script. I don’t set default style to be colorful and fancy, if you want it to be like so, set up a Bash alias. I would even suggest that you alias it to be ds because your fingers don’t need to leave home row.

I think some may have come up an idea like rainbow or nyancat-style at this moment. Feel free to contribute to the script, I’d be more than happy to pull your modifications of fantastic ideas and improvements.