Enhance the collection listing - dossier - console collection manager
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 1060b921d6a9ba07efb50b27a9c0113386197c95
DIR parent 3e78a7de88f0fe245aeb084b52a8325832b1968e
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Fri, 20 Jul 2018 17:35:23 +0200
Enhance the collection listing
Diffstat:
M cdb | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
DIR diff --git a/cdb b/cdb
@@ -208,14 +208,7 @@ switch() {
}
collections() {
- if [ -n "$CONTEXT" ]
- then
- printf 'Currently using collection: %s\n' "${CONTEXT}"
- else
- printf 'No collection currently in use\n'
- fi
- printf 'Collections registerd in ~/.collections/:\n'
- ls ~/.collections/ | grep -v 'context'
+ ls ~/.collections/ | grep -v 'context' | sed "s/^${CONTEXT}$/& */"
exit 0
}