From d95c7f6d10f630d1dbf34cd93925f8c6381a8664 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 28 Jan 2016 00:58:34 +0100 Subject: [PATCH] Display a message when (re)loading tmux config file --- .todo.md | 7 +++++++ tmux.conf | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 .todo.md diff --git a/.todo.md b/.todo.md new file mode 100755 index 0000000..3933e52 --- /dev/null +++ b/.todo.md @@ -0,0 +1,7 @@ +#### Examples +https://github.com/ches/dotfiles/blob/master/.tmux.conf +https://github.com/gpakosz/.tmux/blob/master/.tmux.conf + +Hide status bar if only one window +set -g status off +tmux list-window | wc -l diff --git a/tmux.conf b/tmux.conf index 4e1c513..de86880 100644 --- a/tmux.conf +++ b/tmux.conf @@ -127,9 +127,9 @@ bind-key u capture-pane \;\ unbind C-t bind C-t command-prompt "new-session " -# Recharger la configuration de tmux +# reload tmux settings unbind R -bind-key R source-file ~/.tmux/tmux.conf +bind-key R source-file ~/.tmux/tmux.conf\; display-message "tmux config reloaded" ## Nouveaux raccourcis clavier pour les terminaux # Aller au terminal n°{1,12} avec les touches F{1-12} @@ -224,9 +224,9 @@ set -g lock-after-time 1800 if 'command -v cmatrix' 'set -g lock-command "cmatrix -s && vlock"' 'set -g lock-command vlock' # Initialize sessions -bind I source-file ~/.tmux/splitWORK -bind V source-file ~/.tmux/split101010 -bind H source-file ~/.tmux/splitHP +bind I source-file ~/.tmux/splitWORK\; display-message "tmux split for Work" +bind V source-file ~/.tmux/split101010\; display-message "tmux split for 101010" +bind H source-file ~/.tmux/splitHP\; display-message "tmux split for HP" #### Session -------------------------------------------------------------- # -sX : numéro de la session