#!/bin/ksh function pct { if [ -z "$2" ]; then pass show "$1"|tail -1|xclip -l 1 -r else pass show "$1"|tail -1|xclip -sel c -l 1 -r fi }