Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Mar 14, 2024
1 parent f4b3426 commit d01e972
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion f
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ export def en [name: string] {
}

export def de [path: string] {
rage -d $path -i $age_pub # -i ./age-yubikey-identity-7d5d5540.txt.pub
let tmp_path = (mktemp -t)
rage -d $path -i $age_pub -o $tmp_path # -i ./age-yubikey-identity-7d5d5540.txt.pub
let mime_type = (xdg-mime query filetype $tmp_path)
if ($mime_type | str contains "image") {
cat $tmp_path | img2sixel
} else {
cat $tmp_path
}

srm -C $tmp_path
}

export def dump [path?: string = "./sec/decrypted"] {
Expand Down

0 comments on commit d01e972

Please sign in to comment.