commit ba5b01fcb19b159ed30945425f09c544f5bb6994
parent 4c4aa972b12c507e3dd5a1295439b26fef6bc656
Author: Cem Keylan <cem@ckyln.com>
Date: Wed, 19 Feb 2020 20:22:17 +0300
pm: make 'list' output identical
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pm/pm b/pm/pm
@@ -23,9 +23,7 @@ case "$1" in
rm -f "$PM_DIR/$2"
;;
d|del) [ "$2" ] || usage 1 ; rm -f "$PM_DIR/$2.asc" ;;
- l|list)
- find "$PM_DIR" -type f -name '*.asc' 2>/dev/null || ls -1 "$PM_DIR"
- ;;
+ l|list) { find "$PM_DIR" -type f -name '*asc' 2>/dev/null || ls -1 "$PM_DIR"/*.asc ;} | sort ;;
s|show)
[ "$2" ] || usage 1
[ -r "$PM_DIR/$2.asc" ] ||