aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/tmux.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-19 18:45:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-19 18:45:15 +1200
commit2a080c23791dd632c13847222b941e35da5b4b03 (patch)
tree31ed37839aa411dda0af643688336fcd47482cca /bash/bashrc.d/tmux.bash
parentMerge integer declarations onto one line (diff)
downloaddotfiles-2a080c23791dd632c13847222b941e35da5b4b03.tar.gz
dotfiles-2a080c23791dd632c13847222b941e35da5b4b03.zip
Use arithmetic expression for argument count
Diffstat (limited to 'bash/bashrc.d/tmux.bash')
-rw-r--r--bash/bashrc.d/tmux.bash2
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,