Last active
December 15, 2015 23:29
-
-
Save nvk/5340820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hrline() { | |
# Checks for stout if none gives a default number | |
if [ -z "$1" ] | |
then | |
local length=50 | |
else | |
local length="$1" | |
fi | |
# Takes stout and uses as length | |
for i in `seq $length`; do hrline="$hrline-";done | |
# Prints with ZSH colors | |
print -P "%F{240}$hrline%f" | |
# Clears var | |
hrline="" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment