dorkhub

hr

A horizontal :straight_ruler: for your terminal

LuRsT
Roff1.3k62 forksMITupdated 1 year ago
git clone https://github.com/LuRsT/hr.gitLuRsT/hr

hr

A horizontal ruler for your terminal

Tired of not finding things in your terminal because there's a lot of logs and garbage? Tired of destroying the Enter key by creating a "void zone" in your terminal so that you can see the error that you're trying to debug?

Setup

Linux

Quick install

$ curl https://raw.githubusercontent.com/LuRsT/hr/master/hr > ~/bin/hr
(Examine ~/bin/hr)
$ chmod +x ~/bin/hr

Note: You should have ~/bin in your $PATH for this to work.

Complete install

$ git clone git@github.com:LuRsT/hr.git
$ cd hr

Open Makefile and edit the PREFIX variable, specifying the directory where you'd want the software to reside. Then:

$ sudo make install

OSX

OSX users can install using Homebrew:

$ brew install hr

How to use it?

$ hr
################################## # Till the end of your terminal window
$

$ hr '*'
********************************** # Till the end of your terminal window
$

You can also make "beautiful" ASCII patterns

$ hr - '#' -
----------------------------------
##################################
----------------------------------
$ hr '-#-' '-' '-#-'
-#--#--#--#--#--#--#--#--#--#--#--
----------------------------------
-#--#--#--#--#--#--#--#--#--#--#--

That's it, no requirements, just pure old POSIX shell and tput, check the source, it's free.

More

Check out more information in hrs wiki

more like this

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

fernery

A CLI tool for generating images of ferns 🌿 and other Iterated Function Systems

Haskell51

search

search projects, people, and tags