続・s7

s7でパスワードコレクションを追加する機会があった(インポートして移行したので、これまでは必要なかった)。最近、コマンドのオプションとか、めっきり覚えられなくなったので記録を取っておく。歳かもしれない。

追加はs7の対話シェルで以下のようにする。

s7> add <エントリ名> <タグ1>,<タグ2>,<タグ3>

testというエントリ名を作る場合は以下。タグは省略できる。

s7> add test tag1,tag2,tag3
Add the entry.
        • -
0) name: test 1) rate: 1 t) tags: tag1, tag2, tag3
        • -
Command (h:help, s:save, ^C:cancel):

上記により、とエントリのみを作成した事になる。あとは好みの名前でattributeを追加する。どれがパスワードに相当するというものは特にない。パスワードのように「*****」みたいな表示にしたければ、「秘密」属性を付けるだけ。

gpassから移行した場合はpasswordという名前のattributeになるので、自分の場合はそれに合わせた。

Command (h:help, s:save, ^C:cancel): a
Add attribute.
Attribute name: password
Attribute type: text
Is this a secret? (no): yes
Generate value? (no): yes
Length (8): 
Added attribute: 'password'
        • -
0) name: test 1) rate: 1 2) password: ******** t) tags: tag1, tag2, tag3
        • -
Command (h:help, s:save, ^C:cancel): s Saved:

後は表示されたIDを元にcopyするだけ。自分の場合は以下のようにしてクリップボードにpasswordを保存する。

s7> copy  password --copy-command=xclip
Copy the attribute value to the clipboard.