dotfiles/bin/executable_launcher-zoxide

8 lines
212 B
Bash

#!/usr/bin/env bash
FOLDER=$(zoxide query --list |fzf --preview="(tmux ls |grep -i {q}) && git -C {} status" --preview-window="bottom")
if [ -n "${FOLDER}" ]; then
swaymsg exec -- foot -D "${FOLDER}" "tn"
fi