aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-06-23 15:58:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-06-23 15:58:38 +1200
commit98e14a462e60071e3f01bf4ebbcc0340f1f1eb1d (patch)
tree0666e1ebeb5ddaa23aebbb63686afc767acc1162 /bash
parentPreserve options for cd alias (diff)
downloaddotfiles-98e14a462e60071e3f01bf4ebbcc0340f1f1eb1d.tar.gz
dotfiles-98e14a462e60071e3f01bf4ebbcc0340f1f1eb1d.zip
Use correct Bash arguments expansion
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/tmux.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/tmux.bash b/bash/bashrc.d/tmux.bash
index fd623271..8d5382e9 100644
--- a/bash/bashrc.d/tmux.bash
+++ b/bash/bashrc.d/tmux.bash
@@ -1,7 +1,7 @@
# Attach to existing tmux session rather than create a new one if possible
function tmux {
- if [[ -n "$*" ]]; then
- command tmux $*
+ if [[ -n "$@" ]]; then
+ command tmux "$@"
else
command tmux attach -d &>/dev/null || command tmux
fi