1 2 3 4 5 6 7 8
#!/bin/ksh function pcl { if [ -z "$2" ]; then pass show "$1"|head -1|xclip -l 1 -r else pass show "$1"|head -1|xclip -sel c -l 1 -r fi }