From 2d0915af6807b74e647a291dea2051cba8bae2d9 Mon Sep 17 00:00:00 2001 From: James Ottaway Date: Sat, 8 Aug 2015 23:22:18 +1000 Subject: [PATCH] Look under the local `.tmux/` dir for the file arg. Fixes #6. --- tmux-up | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmux-up b/tmux-up index 5188121..7682dcb 100755 --- a/tmux-up +++ b/tmux-up @@ -38,9 +38,14 @@ then exit 0 fi +TMUX_DIR='.tmux' + if [ -f "$1" ] then FILE=$1 +elif [ -f "$TMUX_DIR/$1" ] +then + FILE=$TMUX_DIR/$1 elif [ -f 'tmux.conf' ] then FILE='tmux.conf'