diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-24 12:05:10 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-24 12:05:10 +0900 |
| commit | b15c6b710f19b74398acd738efb6281183c88b8d (patch) | |
| tree | 5f23c44e6f06a4b943f4db9d4b9ab69b07bc5446 /mac/.local/bin/rgafiles | |
| parent | 818ff6ad1be60d8d0d9de039306d1fc5c7189081 (diff) | |
updates
Diffstat (limited to 'mac/.local/bin/rgafiles')
| -rwxr-xr-x | mac/.local/bin/rgafiles | 6 |
1 files changed, 1 insertions, 5 deletions
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" |
