aboutsummaryrefslogtreecommitdiffstats
path: root/etc/ksh/functions/pct
diff options
context:
space:
mode:
Diffstat (limited to 'etc/ksh/functions/pct')
-rw-r--r--etc/ksh/functions/pct8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/ksh/functions/pct b/etc/ksh/functions/pct
new file mode 100644
index 0000000..b80abff
--- /dev/null
+++ b/etc/ksh/functions/pct
@@ -0,0 +1,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
+}