about summary refs log blame commit diff stats
path: root/config/ksh/functions/pct
blob: b80abff9cb121dda8165359bd4c58fc25985657b (plain) (tree)
1
2
3
4
5
6
7
8







                                                           
#!/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
}