Skip to content

Instantly share code, notes, and snippets.

@nvk
Last active December 15, 2015 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvk/5340820 to your computer and use it in GitHub Desktop.
Save nvk/5340820 to your computer and use it in GitHub Desktop.
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