diff options
-rwxr-xr-x | shell | 6 | ||||
-rwxr-xr-x | wtmux | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -60,7 +60,11 @@ fi window_title $DEST # Shift args -shift 2 +if [ -z "$COMMAND" ]; then + shift +else + shift 2 +fi # Dispatcher if [ "$BASENAME" == "shells" ]; then @@ -43,7 +43,7 @@ if [ ! -z "${name}" ]; then fi fi - if [ -z "$state" ] || [ "$state" == "attached" ]; then + if [ "$state" != "detached" ]; then tmux attach -t ${name} fi else |