From ba1fb58e169aea2d3b999e705fa69a954ee3b35b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Feb 2019 22:07:50 +0200 Subject: [PATCH] Added tree view (-t) --- pash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pash b/pash index 89dbceb..2d058ac 100755 --- a/pash +++ b/pash @@ -39,6 +39,9 @@ pw_show() { pw_list() { shopt -s globstar nullglob + [[ $tree ]] && + printf '%s\n' "pash" + for pwrd in **; do [[ -d $pwrd ]] && dir=/ @@ -55,6 +58,9 @@ pw_list() { dir= fi done + + [[ $tree ]] && + printf '└%s\b┘\n' "${nest//\//──┴}" } pw_gen() {