Giter Club home page Giter Club logo

hr's Introduction

hr

<hr /> 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?

Use the old <hr /> tag, but in your terminal. How? Allow me to explain:

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 [email protected]: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 bash and tput, check the source, it's free.

Alternative hrs

Don't like bash? Don't worry, some developers made hr in their language of choice, check them out:

NOTE: Do send me a pull request if you've made another implementation of hr in another language to add it to the list.

hr's People

Contributors

lurst avatar keith-s-thompson avatar dotemacs avatar neo1001 avatar ajkerrigan avatar awendt avatar jesskay avatar blaskovic avatar jscheel avatar jdowning avatar markusfisch avatar pweldon avatar lkdjiin avatar xuxiaodong avatar gen0cide avatar

Watchers

Ray Leyva avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.