spm

Personal fork of spm (simple password manager)

commit cfc675b3d268c4f1f1be690c6ae09120eae63761
parent fb0ee5870bcb3e5dd09fdcdadcf45429e0709213
Author: Klemens Nanni <kl3@posteo.org>
Date: Sun, 29 May 2016 17:38:51 +0200

Show groups first, sort by entry name on 'list'
1 file changed, 2 insertions(+), 1 deletion(-)
M
spm.sh
|
3
++-
diff --git a/spm.sh b/spm.sh
@@ -67,7 +67,8 @@ list() {
 	[ -n "${1}" ] && [ ! -d "${STORE_DIR}/${1}" ] \
 		&& die "No such group. See 'spm list'."
 
-	tree ${grps_only:+-d} --noreport -l -C -- "${STORE_DIR}/${1}" \
+	tree ${grps_only:+-d} --noreport -l --dirsfirst --sort=name -C \
+			-- "${STORE_DIR}/${1}" \
 		| sed "s/.gpg//g" \
 		| less -E -i -K -R -X
 }