From f368a4e3d126a2f5910ec95ca308836f068110db Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 17 Oct 2023 14:55:16 +0100 Subject: Seems to fix a bug or change in xclip --- tjclip-alternate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tjclip-alternate.sh b/tjclip-alternate.sh index cb3483a..8346e0c 100755 --- a/tjclip-alternate.sh +++ b/tjclip-alternate.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash # this script replaces tjclip fish function which relied on _tj. +set -euxo pipefail # Our target file TODAY_JOURNAL=~/Documents/Notes/journal/home/$(date +\%Y-\%m-\%d).md -URL="$(xclip -o clipboard clipboard)" +URL="$(xclip -select clipboard -o)" # Test whether it already exisits or not if [[ -a $TODAY_JOURNAL ]] -- cgit v1.2.3