dotfiles/shell/fzf.sh
Felix Buehler 1c9d2e7eba
Some checks failed
Build / Lint Code Base (push) Has been cancelled
CI / build (push) Has been cancelled
shell/fzf: update shell completion sourcing
2026-01-14 21:20:30 +01:00

14 lines
358 B
Bash
Executable file

#!/usr/bin/env bash
if command -v fzf >/dev/null 2>&1; then
if [ -n "${BASH_VERSION-}" ]; then
# shellcheck source=/dev/null
eval "$(fzf --bash)"
elif [ -n "${ZSH_VERSION-}" ]; then
# shellcheck source=/dev/null
source <(fzf --zsh)
elif [ -n "${FISH_VERSION-}" ]; then
# shellcheck source=/dev/null
fzf --fish | source
fi
fi