Compare commits

..

7 Commits

4 changed files with 15 additions and 50 deletions

View File

@ -1,16 +1,17 @@
#!/bin/bash #!/bin/bash
function term_change_title { function term_change_title
{
case $TERM in case $TERM in
# Change the window title of X terminals # Change the window title of X terminals
xterm* | rxvt* | urxvt* | Eterm) xterm*|rxvt*|urxvt*|Eterm)
echo -ne "\033]0;${1}\007" echo -ne "\033]0;${1}\007"
;; ;;
# Change the window title of screen terminals # Change the window title of screen terminals
screen* | tmux*) screen*)
echo -ne "\033k${1}\033\\" echo -ne "\033k${1}\033\\"
;; ;;
esac esac
} }

View File

@ -1,31 +0,0 @@
#!/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

View File

@ -8,13 +8,13 @@ if (command -v tmux &>/dev/null); then
nb_sessions_attached=$(tmux list-session | grep -c "attached") nb_sessions_attached=$(tmux list-session | grep -c "attached")
nb_sessions_detached=$(tmux list-session | grep -c -v "attached") nb_sessions_detached=$(tmux list-session | grep -c -v "attached")
echo_info "tmux : found ${nb_sessions} session(s)" echo_info "Found ${nb_sessions} tmux session(s)"
echo " ${nb_sessions_attached} session(s) attached" echo " * ${nb_sessions_attached} attached"
tmux list-sessions | grep "attached" | sed -e 's/^/ /' tmux list-sessions | grep "attached" | sed -e 's/^/ - /'
echo " ${nb_sessions_detached} session(s) detached" echo " * ${nb_sessions_detached} detached"
tmux list-sessions | grep -v "attached" | sed -e 's/^/ /' tmux list-sessions | grep -v "attached" | sed -e 's/^/ - /'
fi fi
fi fi

View File

@ -1,5 +0,0 @@
#!/bin/bash
if (command -v zoxide &>/dev/null); then
eval "$(zoxide init bash)"
fi