From 5b0012ffc17e432cf099d0977b37957098d02bd7 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 21 Mar 2025 09:37:27 +0000 Subject: [PATCH] feat(rc): Ajout du support de fzf --- rc.d/fzf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rc.d/fzf diff --git a/rc.d/fzf b/rc.d/fzf new file mode 100644 index 0000000..f707b3c --- /dev/null +++ b/rc.d/fzf @@ -0,0 +1,31 @@ +#!/bin/bash + +if (command -v fzf &>/dev/null); then + + source <(fzf --bash) + + # Selection de fichiers + export FZF_CTRL_T_OPTS="--height 60% \ +--border sharp \ +--layout reverse \ +--prompt '󰈞 ' \ +--pointer ❯ \ +--marker ✔" + + # Navigation vers un répertoire + export FZF_ALT_C_OPTS="--height 60% \ +--border sharp \ +--layout reverse \ +--prompt '󰥨 ' \ +--pointer ❯ \ +--marker ✔" + + # Navigation dans l'historique + export FZF_CTRL_R_OPTS="--height 60% \ +--border sharp \ +--layout reverse \ +--prompt ' ' \ +--pointer ❯ \ +--marker ✔" + +fi