pash: further simplify copy
This commit is contained in:
parent
f07b3145a0
commit
4996cec081
4
pash
4
pash
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue