diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-19 18:45:15 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-19 18:45:15 +1200 |
commit | 2a080c23791dd632c13847222b941e35da5b4b03 (patch) | |
tree | 31ed37839aa411dda0af643688336fcd47482cca /bash | |
parent | Merge integer declarations onto one line (diff) | |
download | dotfiles-2a080c23791dd632c13847222b941e35da5b4b03.tar.gz dotfiles-2a080c23791dd632c13847222b941e35da5b4b03.zip |
Use arithmetic expression for argument count
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/tmux.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/tmux.bash b/bash/bashrc.d/tmux.bash index c7785cd3..814917e4 100644 --- a/bash/bashrc.d/tmux.bash +++ b/bash/bashrc.d/tmux.bash @@ -2,7 +2,7 @@ tmux() { # If any arguments to function, just run tmux as normal with them - if [[ -n "$@" ]]; then + if (($# > 0)); then command tmux "$@" # If no arguments, attempt to attach to an existing session; if that fails, |