From b15c6b710f19b74398acd738efb6281183c88b8d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 24 Aug 2025 12:05:10 +0900 Subject: updates --- mac/.local/bin/rgafiles | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mac/.local/bin/rgafiles') diff --git a/mac/.local/bin/rgafiles b/mac/.local/bin/rgafiles index e8b5e72..ea02fc9 100755 --- a/mac/.local/bin/rgafiles +++ b/mac/.local/bin/rgafiles @@ -29,10 +29,6 @@ search_term() { echo "Error: 'rga' is not installed." >&2 exit 1 fi - if ! command -v xclip >/dev/null 2>&1; then - echo "Error: 'xclip' is not installed." >&2 - exit 1 - fi # Construct the preview command preview_cmd=$(printf "rga %s --pretty --context 10 '%s' {}" "$case_flag" "$*") @@ -48,7 +44,7 @@ search_term() { fi # copy target to the clipboard - echo "$@" | xclip -selection clipboard 2>/dev/null + echo "$@" | pbcopy 2>/dev/null openfiles "$files" -- cgit v1.2.3