Skip to content

Instantly share code, notes, and snippets.

@maxclaus
Created January 14, 2014 23:53
Show Gist options
  • Save maxclaus/8428298 to your computer and use it in GitHub Desktop.
Save maxclaus/8428298 to your computer and use it in GitHub Desktop.
# Add this to you ~/.profile
function tree {
find ${1:-.} -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
}
# Then:
$ source ~/.profile
$ tree
$ tree .
$ tree [some-folder-path]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment