From 92266cddcbbd48c73eebadd35d4d9d82fab90196 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 20 Jun 2022 13:19:55 -0400 Subject: [PATCH] Update camera to support arguments to prefill/select a selection --- chezmoi/dot_zshrc.d/executable_camera.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chezmoi/dot_zshrc.d/executable_camera.zsh b/chezmoi/dot_zshrc.d/executable_camera.zsh index 92ca1de..d388b14 100644 --- a/chezmoi/dot_zshrc.d/executable_camera.zsh +++ b/chezmoi/dot_zshrc.d/executable_camera.zsh @@ -5,7 +5,7 @@ if command -v mpv &> /dev/null && command -v fzf &> /dev/null; then set -euo pipefail printf "%s\0" /dev/video* | - fzf --print0 --read0 -m -1 --height="$((LINES/4))" | + fzf --print0 --read0 --query "${1:-}" -m -1 --height="$((LINES/4))" | xargs -0 -P 0 -I {} mpv \ -vf=hflip \ --demuxer-lavf-format=video4linux2 \