aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,