From 0c8fdd8023bca8e79ed0ca32a2c8a9bf8746a780 Mon Sep 17 00:00:00 2001 From: James Ottaway Date: Sat, 8 Aug 2015 23:15:15 +1000 Subject: [PATCH] Replace `CONF` with `FILE` to match the `--help` usage example --- tmux-up | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tmux-up b/tmux-up index 3151148..d2f5ae5 100755 --- a/tmux-up +++ b/tmux-up @@ -38,16 +38,16 @@ then exit 0 fi -CONF=${1:-.tmux.conf} +FILE=${1:-.tmux.conf} -if [ ! -f "$CONF" ] +if [ ! -f "$FILE" ] then - echo "$0: cannot stat ‘${CONF}’: No such file" + echo "$0: cannot stat ‘${FILE}’: No such file" exit 1 fi BASE=$(basename "$PWD" | sed 's/[^a-zA-Z0-9\-]//g') -NAME=$(basename "$CONF" .conf) +NAME=$(basename "$FILE" .conf) if [ "$NAME" = 'tmux' ] || [ "$NAME" = '.tmux' ] then @@ -59,7 +59,7 @@ fi if ! tmux has-session -t "$SESSION" > /dev/null 2>&1 then TMUX='' tmux new-session -d -s "$SESSION" - xargs -L1 tmux < "$CONF" + xargs -L1 tmux < "$FILE" tmux select-window -t 1 fi