feat(rc): Ajout du support de fzf
This commit is contained in:
parent
af4fb0e5fa
commit
5b0012ffc1
31
rc.d/fzf
Normal file
31
rc.d/fzf
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user