hr 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

hr 命令安装:


-bash/zsh: hr: command not found

# 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


# OS X
brew install hr

# Dockerfile
dockerfile.run/hr

hr 命令补充说明:


hr 命令输出终端的水平标尺。

hr 命令语法:


hr
hr [string]
hr [string_a] [string_b] [string_c]

hr 命令实例:


hr 命令打印水平线:

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

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

hr 命令还可以制作 漂亮ASCII 模式:

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


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

hr 命令是纯的 bash 和 tput,并且是免费的。

hr 命令扩展阅读:




hr 命令评论