From 83dfcdcd11b75d48014097e57bc5f30f00f2948f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 10 Jan 2026 09:24:55 +0000 Subject: [PATCH] [macos] Remove the preview image after fzf is done --- macos/.config/shell-common/99_macos.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macos/.config/shell-common/99_macos.sh b/macos/.config/shell-common/99_macos.sh index 8801ca3..48d4e71 100644 --- a/macos/.config/shell-common/99_macos.sh +++ b/macos/.config/shell-common/99_macos.sh @@ -76,6 +76,9 @@ function set_wallpaper() { wallpaper_path=$(find "$wallpaper_dir" \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.heic" \) | fzf --preview 'fzf-preview.sh {}' --height 40%) + # Clear fzf preview from the terminal + printf "\x1b_Ga=d,d=A\x1b\\" + if [ -z "$wallpaper_path" ]; then echo "No wallpaper selected." return 1