From 80ca8748ee3c9df9460dfc2f868e03c6f59fd6ac Mon Sep 17 00:00:00 2001 From: Lewis Cook Date: Sun, 17 Sep 2023 14:20:24 +0100 Subject: [PATCH] fix: Ammend fzf one-liner example Pass `-n1` to `xargs` in the example else we invoke `portsync` with the arguments of *all* selected packages in `fzf`, rather than passing `-o` with each individual package. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c624c4..e6af277 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ of available package updates through `fzf` ```sh portsync fetch -f "%o" | fzf --multi \ --header "Select port(s) to update" --preview "pkg rquery -r FreeBSD '%e' {}" \ - --preview-window=up | xargs portsync update -o + --preview-window=up | xargs -n1 portsync update -o ``` Or even be able to output updates in a particular file format, such as JSON