Fixes - dossier - console collection manager
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit dcdc99999d4e8e1f7379a9b4814050ae492b2e07
 (DIR) parent 9723a29f7264eb641ec2001fae03cfde73bd5127
 (HTM) Author: Solene Rapenne <solene@perso.pw>
       Date:   Sat, 21 Jul 2018 01:07:00 +0200
       
       Fixes
       
       Diffstat:
         M README                              |       2 +-
         M cdb                                 |       6 +++---
         M cdb.1                               |      15 +++++++--------
       
       3 files changed, 11 insertions(+), 12 deletions(-)
       ---
 (DIR) diff --git a/README b/README
       @@ -3,7 +3,7 @@ How to use cdb
        
            $ mkdir -p ~/collections/games
            $ cdb collections register ~/collections/games games
       -    $ cdb collections use games
       +    $ cdb collections games
            $ cdb collections
            games *
            $ cdb supertux rate 5 multiplayer yes
 (DIR) diff --git a/cdb b/cdb
       @@ -1,7 +1,7 @@
        #!/bin/sh
        
        mkdir -p ~/.collections
       -test -f ~/.collections/context && . ~/.collections/context
       +test -f ~/.collections/current && . ~/.collections/current
        
        if [ -n "$CONTEXT" ]
        then
       @@ -213,13 +213,13 @@ switch() {
                        exit 9
                else
                        printf 'Switching to collection %s\n' "${1}"
       -                printf 'CONTEXT=%s\n' $1 > ~/.collections/context
       +                printf 'CONTEXT=%s\n' $1 > ~/.collections/current
                        exit $?
                fi
        }
        
        collections() {
       -        ls ~/.collections/ | grep -v 'context' | sed "s/^${CONTEXT}$/& */"
       +        ls ~/.collections/ | grep -v 'current' | sed "s/^${CONTEXT}$/& */"
                exit 0
        }
        
 (DIR) diff --git a/cdb.1 b/cdb.1
       @@ -29,7 +29,7 @@ With the argument
        it will show all the attributes known for that item.
        .It Nm Cm export
        Export the data of the current collection as CSV (Comma Separated Values).
       -.It Nm Cm collections Oo register Pa full-path Ar collection-name Oc | Op use Ar collection
       +.It Nm Cm collections Oo collection Oc | Oo register Pa full-path Ar collection-name Oc 
        the command
        .Cm collections
        with no argument will show the list of collections that
       @@ -41,6 +41,12 @@ symbol after the name.
        .Pp
        the command
        .Cm collections
       +with one parameter
       +will switch the current collection in use to the collection
       +.Ar collection.
       +.Pp
       +the command
       +.Cm collections
        using the parameter
        .Ar register
        will make
       @@ -54,13 +60,6 @@ to identify it. When a collection is registered,
        will initialize a
        .Xr git 1
        repository in it if possible.
       -.Pp
       -the command
       -.Cm collections
       -with the parameter
       -.Ar use
       -will switch the current collection in use to the collection
       -.Ar collection.
        .It Nm Cm search Oo attribute Oo value Oc Oc Op attribute value
        the command
        .Cm search