From 4a8c1dd6784d7a0981a3005fd7cce24b04f0b442 Mon Sep 17 00:00:00 2001 From: phone Date: Fri, 29 Dec 2023 19:35:52 +0300 Subject: [PATCH] Tmux : Fix tda to detach only from current session. --- .config/bash/module/Doc.sh | 2 +- .config/bash/module/Tmux.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/bash/module/Doc.sh b/.config/bash/module/Doc.sh index e88c81a..84325e3 100644 --- a/.config/bash/module/Doc.sh +++ b/.config/bash/module/Doc.sh @@ -1,5 +1,5 @@ # Generate a markdown file with all the help info. -# Outputs to `~/.doc/bash.md`. +# Outputs to `~/.doc/Bash.md`. function doc_bash() { local IFS=$'\n' local file="${HOME}/.doc/Bash.md" diff --git a/.config/bash/module/Tmux.sh b/.config/bash/module/Tmux.sh index 7182f46..429d98a 100644 --- a/.config/bash/module/Tmux.sh +++ b/.config/bash/module/Tmux.sh @@ -20,7 +20,7 @@ function td() { # Detach all other tmux clients. function tda() { - tmux detach-client -a + tmux detach-client -s $(tmux display-message -p '#S') } # List running sessions.