pash: further simplify copy

This commit is contained in:
Dylan Araps 2019-11-28 18:46:20 +00:00
parent f07b3145a0
commit 4996cec081
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 3 deletions

4
pash
View File

@ -60,12 +60,10 @@ pw_show() {
}
pw_copy() {
pass=$(pw_show "$1")
# Disable warning against words-splitting as it is safe
# and intentional (globbing is disabled).
# shellcheck disable=2086
printf %s "$pass" | ${PASH_CLIP:-xclip -selection clipboard}
pw_show "$1" | ${PASH_CLIP:-xclip -selection clipboard}
}
pw_list() {