From 8657e775363aebba075d26b34a4936e94b999828 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Thu, 16 Jul 2026 01:09:55 -0400 Subject: [PATCH] feat(tmux): add rename-window keybind and container export script - Bind R to prompt for window rename in tmux - Add script to export an incus container to /srv/backup --- config/tmux/tmux.conf | 1 + script/export-container.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 script/export-container.sh diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index fbe428a..3eaffc0 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -97,6 +97,7 @@ bind / command-prompt "split window 'exec man %%'" bind B command-prompt -p "New Session:" "new-session -A -s '%%'" bind Tab switch-client -l +bind R command-prompt -p "Rename Window:" "rename-window '%%'" bind t run-shell -b "~/.local/bin/t" bind Enter run-shell -b "~/.local/bin/s" bind Q confirm kill-session diff --git a/script/export-container.sh b/script/export-container.sh new file mode 100755 index 0000000..86113d6 --- /dev/null +++ b/script/export-container.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +test -z "$1" && exit + +incus export $1 /srv/backup/$1-$(date +"%Y%m%d").tar.gz