diff options
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/tmux.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/tmux.bash b/bash/bashrc.d/tmux.bash index e7aaa826..2e4db7a6 100644 --- a/bash/bashrc.d/tmux.bash +++ b/bash/bashrc.d/tmux.bash @@ -7,8 +7,8 @@ fi tmux() { # If sessions exist, default the arguments to the attach-session command - if command tmux has-session 2>/dev/null; then - command tmux "${@:-attach-session}" + if ! (($#)) && command tmux has-session 2>/dev/null; then + command tmux attach-session # Otherwise, just call tmux directly with the given arguments else |