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