Compare commits

...

7 Commits

Author SHA1 Message Date
5f8997f418 chore(rc): fzf integration config spacing rework 2025-11-03 01:34:40 +01:00
693d20f2cf feat(aliases): Improve aliases for kitty 2025-11-03 01:33:44 +01:00
db981696b6 fix: activate mise early
because some tools set in rc.d (like fzf, ...) depends on it
2025-11-03 01:24:52 +01:00
594a212ebc chore(rc): rework fzf integration config 2025-11-01 12:53:41 +01:00
8fef2338eb feat(aliases): Add aliases for kitty 2025-10-24 12:48:22 +02:00
ea9139f77f feat(completion): Add autocompletion for tea
`tea` is the command line tool for Gitea.
2025-10-02 22:41:47 +02:00
15a56af2c8 chores(completion): spaces 2025-10-02 22:40:57 +02:00
5 changed files with 48 additions and 21 deletions

7
aliases.d/kitty Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# [ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
if [ -n "${KITTY_INSTALLATION_DIR}" ]; then
alias ssh="kitty +kitten ssh"
alias icat="kitty +kitten icat"
fi

View File

@@ -1,4 +1,3 @@
#!/bin/bash
if (command -v flux &>/dev/null); then

5
completion.d/tea Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
if (command -v tea &>/dev/null); then
source <(tea completion bash)
fi

View File

@@ -4,28 +4,44 @@ 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 ✔"
FZF_ALT_C_OPTS="$(
cat <<'EOF'
--height 60%
--border sharp
--layout reverse
--prompt '󰥨 '
--pointer
--marker ✔
EOF
)"
export FZF_ALT_C_OPTS
# Selection de fichiers
FZF_CTRL_T_OPTS="$(
cat <<'EOF'
--height 60%
--border sharp
--layout reverse
--prompt '󰈞 '
--pointer
--marker ✔
--preview="bat --color=always --style=-header {}"
EOF
)"
export FZF_CTRL_T_OPTS
# Navigation dans l'historique
export FZF_CTRL_R_OPTS="--height 60% \
--border sharp \
--layout reverse \
--prompt ' ' \
--pointer \
--marker ✔"
FZF_CTRL_R_OPTS="$(
cat <<'EOF'
--height 60%
--border sharp
--layout reverse
--prompt ' '
--pointer
--marker ✔
EOF
)"
export FZF_CTRL_R_OPTS
fi