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
-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 [string] hr [string_a] [string_b] [string_c]
hr 命令打印水平线:
$ hr ################################## # Till the end of your terminal window $ $ hr '*' ********************************** # Till the end of your terminal window $
hr 命令还可以制作 漂亮 的 ASCII 模式:
$ hr - '#' - ---------------------------------- ################################## ---------------------------------- $ hr '-#-' '-' '-#-' -#--#--#--#--#--#--#--#--#--#--#-- ---------------------------------- -#--#--#--#--#--#--#--#--#--#--#--
hr 命令是纯的 bash 和 tput,并且是免费的。