Skip to content

Instantly share code, notes, and snippets.

@CptSpaceToaster
Last active July 9, 2018 13:43
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 CptSpaceToaster/31e448452341d7effad5d04a67c50239 to your computer and use it in GitHub Desktop.
Save CptSpaceToaster/31e448452341d7effad5d04a67c50239 to your computer and use it in GitHub Desktop.
function wrap_tree()
{
if [[ -f /tmp/tree ]]; then
$(which tree) $*
else
touch /tmp/tree
cat <<EOF
* *
* * *
* * * * *
* * * * *
* * * * * *
* * * * * .# * *
* * * #. .# * *
* "#. #: #" * * *
* * * "#. ##" *
* "###
"##
##.
.##:
:###
;###
,####.
/\\/\\/\\/\\/\\/.######.\\/\\/\\/\\/\\/\\
EOF
fi
}
alias tree='wrap_tree'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment