https://github.com/LuRsT/hr
A horizontal :straight_ruler: for your terminal
https://github.com/LuRsT/hr
cli shell utils
Last synced: 8 months ago
JSON representation
A horizontal :straight_ruler: for your terminal
- Host: GitHub
- URL: https://github.com/LuRsT/hr
- Owner: LuRsT
- License: mit
- Created: 2014-02-10T19:54:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T15:57:53.000Z (8 months ago)
- Last Synced: 2025-03-17T19:08:39.754Z (8 months ago)
- Topics: cli, shell, utils
- Language: Roff
- Homepage:
- Size: 38.1 KB
- Stars: 1,283
- Watchers: 20
- Forks: 62
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shell - hr - `<hr />` for your terminal (Command-Line Productivity)
- awesome-tools - hr - 终端下的 `<hr />`,在终端下输出水平分割线。 (Development / Time Series)
- my-awesome-github-stars - LuRsT/hr - A horizontal :straight_ruler: for your terminal (Roff)
- fucking-awesome-shell - hr - `<hr />` for your terminal (Command-Line Productivity)
README
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 `hr`s [wiki](https://github.com/LuRsT/hr/wiki)