Display a message when (re)loading tmux config file

This commit is contained in:
Jeremy Gardais 2016-01-28 00:58:34 +01:00
parent eae896300e
commit d95c7f6d10
2 changed files with 12 additions and 5 deletions

7
.todo.md Executable file
View File

@ -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

View File

@ -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