bin: passget print URL
This commit is contained in:
parent
bcd23eaa18
commit
1fdd5d6769
1 changed files with 5 additions and 0 deletions
|
|
@ -37,8 +37,13 @@ fi
|
|||
|
||||
query_username='.details.fields[] | select(.name == "username") | .value'
|
||||
query_password='.details.fields[] | select(.name == "password") | .value'
|
||||
query_url='.overview.url'
|
||||
|
||||
item="$(op get item "${uuid}")"
|
||||
|
||||
url="$(echo "${item}" | jq -r "${query_url}")"
|
||||
echo "Login for ${url} (${uuid})"
|
||||
|
||||
echo "${item}" | jq -r "${query_username}" | xsel -bi
|
||||
echo 'Username clipped'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue