From 7d92f42d23ce9603a42638ff34e605af3e1599aa Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 9 Aug 2022 19:47:36 +1200 Subject: Set default tm(1df) session name with file not env --- bin/tm.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/tm.sh b/bin/tm.sh index e097cfb2..6bdce20b 100644 --- a/bin/tm.sh +++ b/bin/tm.sh @@ -1,5 +1,10 @@ # Attach to existing tmux session rather than create a new one if possible +# Source config if it exists (just the session name, really) +if [ -e "${XDG_CONFIG_HOME:-"$HOME"/.config}"/tm/config ] ; then + . "${XDG_CONFIG_HOME:-"$HOME"/.config}"/tm/config || exit +fi + # If given any arguments, just use them as they are if [ "$#" -gt 0 ] ; then : @@ -10,7 +15,7 @@ elif tmux has-session 2>/dev/null ; then # Create a new session with an appropriate name else - set -- new-session -s "${TMUX_SESSION:-default}" + set -- new-session -s "${default_session_name:-default}" fi # Execute with concluded arguments -- cgit v1.2.3 From 56ab77b49b775ea6933832dd029307e64ef31ce1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 9 Aug 2022 19:48:03 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0cffb1f4..0a3a97a8 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v12.19.0 -Tue, 09 Aug 2022 07:26:36 +0000 +tejr dotfiles v12.20.0 +Tue, 09 Aug 2022 07:48:02 +0000 -- cgit v1.2.3