From f774b98577c8b0b316f9dac767690bc212834a9c Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Wed, 28 Aug 2013 08:58:06 +0200 Subject: [PATCH] took advantage of tmux 1.8 blocking 'if-shell' to detect '~/.tmux.conf.local' starting with tmux 1.8, it's an error to source a non existing file --- .tmux.conf | 2 +- README.md | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 12e2cef..6304eb1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -127,7 +127,7 @@ if 'command -v reattach-to-user-namespace' 'bind y run "tmux save-buffer - | rea # -- user defined -------------------------------------------------------------- -source ~/.tmux.conf.local +if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local' # -- 8< ------------------------------------------------------------------------ diff --git a/README.md b/README.md index cf971ab..b8e02d9 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,6 @@ Installation $ rm -rf .tmux $ git clone https://github.com/gpakosz/.tmux.git $ ln -s .tmux/.tmux.conf - $ touch ~/.tmux.conf.local - -Note: `tmux` 1.8 doesn't silently ignore sourcing missing files anymore. That's -why you now have to `touch ~/.tmux.conf.local`. ### Accessing the Mac OSX clipboard from within tmux sessions