commit e464c7ae1901bed1b6f42f4d945f4b7bbdf846e3 parent 69e6fc3d65624495c6bef25301c35f15fbad28c5 Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 25 Jun 2019 15:42:42 +0200 Add pbcopy/pbpaste commands Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
A | pkgs/scripts/bin/pbcopy | | | 7 | +++++++ |
A | pkgs/scripts/bin/pbpaste | | | 7 | +++++++ |
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/pkgs/scripts/bin/pbcopy b/pkgs/scripts/bin/pbcopy @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e +if [ ! $(uname -s) = "Darwin" ]; then + xsel --clipboard --input $@ +else + pbpaste $@ +fi diff --git a/pkgs/scripts/bin/pbpaste b/pkgs/scripts/bin/pbpaste @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e +if [ ! $(uname -s) = "Darwin" ]; then + xsel --clipboard --output $@ +else + pbpaste $@ +fi