Skip to content

Instantly share code, notes, and snippets.

@CptSpaceToaster
Last active July 9, 2018 13:43
Show Gist options
  • 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