Skip to content

Commit

Permalink
Look under the local .tmux/ dir for the file arg. Fixes #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesottaway committed Aug 8, 2015
1 parent f3b5dd7 commit a3c6c8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tmux-up
Original file line number Diff line number Diff line change
Expand 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'
Expand Down

0 comments on commit a3c6c8b

Please sign in to comment.