diff options
| -rwxr-xr-x | dpw | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -60,6 +60,7 @@ EOF _printH "show <key>" "dumps secret to stdout" _printH "copy <key>" "copies the first line of the secret to the clipboard" +_printH "copyf <key>" "copies the entire secret to the clipboard" _printH "type <key>" "types the first line of the secret with xdotool" _printH "list [<key>]" "dumps a listing of all subkeys if key is supplied" _printH "ls [<key>]" "Same as above" @@ -146,6 +147,14 @@ pth="$1"; shift _clip_clear } +copyf() { +pth="$1"; shift +"${DPW_BACKEND}" show "$pth" \ + | _clip + +_clip_clear +} + _type() { pth="$1"; shift "${DPW_BACKEND}" show "$pth" \ @@ -268,6 +277,7 @@ case $1 in ;; show) shift ;; copy) action=copy; shift ;; + copyf) action=copyf; shift ;; type) action=_type; shift ;; list|ls) action=list; shift ;; rm) action=remove; shift ;; |
