Added tree view (-t)

This commit is contained in:
Dylan Araps 2019-02-25 22:07:50 +02:00
parent a9fd0b8dfb
commit ba1fb58e16

6
pash
View File

@ -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() {