From 2e68121e1f3138a4c3c8e625b15f16e7ee867c7a Mon Sep 17 00:00:00 2001 From: ivaquero Date: Mon, 7 Oct 2024 23:40:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=9A=B8=20detect=20fzf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oxidizer.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/oxidizer.sh b/oxidizer.sh index 9af9eacb..537886ed 100644 --- a/oxidizer.sh +++ b/oxidizer.sh @@ -141,6 +141,21 @@ upox() { cd "${HOME}" || exit } +########################################################## +# fzf +########################################################## + +if test "$(command -v fzf)"; then + case ${SHELL} in + *zsh) + source <(fzf --zsh) + ;; + *bash) + eval "$(fzf --bash)" + ;; + esac +fi + ########################################################## # Starship ##########################################################