News for hackers. Stuff that matters.
Re:Show HN: Creds – manage API keys with GPG on the command ... by m6w6 on Thursday March 17, 2016 @12:21PM (#11305378)
Nice, must have been a fun project! I'm not sure, though, whether it adds enough distinct functionality to warrant a project?

Lazy version:

    $ encfs $HOME/Dropbox/creds $HOME/.creds
    $ cat >~/bin/creds <<<'EOF'
    #!/bin/sh

    $CREDS=$HOME/.creds/$2.sh

    case "$1" in
    add|edit)
        $EDITOR $CREDS
        [ -f $CREDS ] && chmod +x $CREDS
        ;;
    list)
        echo $HOME/.creds/*.sh \
            | xargs -I '{}' -n1 basename {} .sh \
            | less -SRFX
        ;;
    esac
    EOF
    $ chmod +x ~/bin/creds
EDIT: lessen <pre> width

There are no comments on this comment yet.