Browse Source

add copy function

master
Markus Bergholz 2 months ago
parent
commit
b331ce4484
Signed by: m GPG Key ID: B45724801354B174
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      bash/function.bashrc

+ 9
- 0
bash/function.bashrc View File

@ -78,3 +78,12 @@ totp() {
TOKEN=$(jq ".$1" -r ~/git/secrets/totp.json)
oathtool -b --totp $TOKEN | xclip
}
_totp() {
TOKEN=$(jq ".$1" -r ~/git/secrets/totp.json)
oathtool -b --totp $TOKEN
}
copy() {
cat $1 | xclip
}

Loading…
Cancel
Save