commit e5cfce111face6e542d7de90425dc8e958da36fe parent 871bee17318317af215991fac7dfadcff53654bb Author: Alex Balgavy <alex@balgavy.eu> Date: Fri, 7 May 2021 12:39:40 +0200 linkhandler: copy to clipboard if prefixed with '@' Diffstat:
M | scripts/linkhandler | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/scripts/linkhandler b/scripts/linkhandler @@ -47,6 +47,9 @@ case "$1" in ;; esac ;; + '@http'*) + printf "${1##@}" | clc + ;; *) if [ -f "$1" ]; then "${EDITOR:-vim}" "$1" else open "$1" >/dev/null 2>&1