From b947c33f2d0f7f770bc668e60f8398ddf18a5093 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 20 Apr 2014 15:38:27 +0900 Subject: [PATCH] shrc: remove -c options from tx function --- shrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index 5d860c1..f6e09df 100755 --- a/shrc +++ b/shrc @@ -687,10 +687,12 @@ tx(){ elif test -z "$TMUX" then # -A: attach if already exists - tmux new-session -A -c "$HOME" -s "$1" + # tmux new-session -A -c "$HOME" -s "$1" + tmux new-session -A -s "$1" else # create new session if not exists yet - tmux has-session -t "$1" || TMUX= tmux new-session -d -c "$HOME" -s "$1" + # tmux has-session -t "$1" || TMUX= tmux new-session -d -c "$HOME" -s "$1" + tmux has-session -t "$1" || TMUX= tmux new-session -d -s "$1" tmux switch-client -t "$1" fi }