about summary refs log tree commit diff stats
path: root/config/ksh/functions/pcl
blob: 42ad224cd6fb76dc7230471c83c7584f1e56a633 (plain) (blame)
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
}