Skip to content

Instantly share code, notes, and snippets.

@alvinlai
Created February 10, 2014 20:53
Show Gist options
  • Save alvinlai/8923928 to your computer and use it in GitHub Desktop.
Save alvinlai/8923928 to your computer and use it in GitHub Desktop.
bash horizontal line
# Put this in your ~/.bash_profile
function hr {
if [[ -n $1 ]]; then
space_character=$1
else
space_character='='
fi
for i in $(seq 1 $(tput cols));
do
echo -n "${space_character}";
done
echo ""
}
alias hrr="hr █"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment