3 ms·
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/
by m6w6 11y ago
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