From 08aed79ee6bf199d97b1f82c954033e76405fb46 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 18 Jan 2025 00:19:15 +0100 Subject: [PATCH] tmux/file --- sh/tmux.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/tmux.sh b/sh/tmux.sh index bb88334..896f4bc 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -3,11 +3,13 @@ # ╰──────┴───────╯ rwx_tmux_setup() { - rwx_file_write "${HOME}/.tmux.conf" "\ + local file + file="${HOME}/.tmux.conf" + rwx_file_write "${file}" "\ # display duration set -g display-time 1536 # reload configuration -bind r source-file ~/.tmux.conf \\; display '↑ .tmux.conf' +bind r source-file ${file} \\; display 'Source: ${file}' # toggle mouse bind t set -g mouse \\; display 'Mouse: #{mouse}'