diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-25 03:29:06 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-25 03:29:06 +1200 |
commit | 3c022b3763a277f1aed5d34ba72956f44175d207 (patch) | |
tree | 46b7ba0be94b0a41794c22933f7543b85f85de78 /bash/bashrc.d/tmux.bash | |
parent | Build VCS status flags as array for correctness (diff) | |
download | dotfiles-3c022b3763a277f1aed5d34ba72956f44175d207.tar.gz dotfiles-3c022b3763a277f1aed5d34ba72956f44175d207.zip |
Restructure tmux wrapper function slightly
Diffstat (limited to 'bash/bashrc.d/tmux.bash')
-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 814917e4..3a26b5db 100644 --- a/bash/bashrc.d/tmux.bash +++ b/bash/bashrc.d/tmux.bash @@ -8,8 +8,8 @@ tmux() { # If no arguments, attempt to attach to an existing session; if that fails, # run the tmux binary with no arguments, which by default creates a new # session - else - command tmux attach -d &>/dev/null || command tmux + elif ! command tmux attach -d &>/dev/null; then + command tmux fi } |