aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-12-21 22:21:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-12-21 22:21:28 +1300
commit8d6f34131d73bdc6eae1e667ad9148588f1c5319 (patch)
tree5ad4511fb692eb3090464a596643c1d3e2f02829 /bash/bashrc.d
parentChange null-arguments check for tmux func (diff)
downloaddotfiles-8d6f34131d73bdc6eae1e667ad9148588f1c5319.tar.gz
dotfiles-8d6f34131d73bdc6eae1e667ad9148588f1c5319.zip
Detach session on attaching by default
Diffstat (limited to 'bash/bashrc.d')
-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 2e4db7a6..0a3c2743 100644
--- a/bash/bashrc.d/tmux.bash
+++ b/bash/bashrc.d/tmux.bash
@@ -8,7 +8,7 @@ tmux() {
# If sessions exist, default the arguments to the attach-session command
if ! (($#)) && command tmux has-session 2>/dev/null; then
- command tmux attach-session
+ command tmux attach-session -d
# Otherwise, just call tmux directly with the given arguments
else