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
This commit is contained in:
@@ -97,6 +97,7 @@ bind / command-prompt "split window 'exec man %%'"
|
|||||||
bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
|
bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
|
||||||
bind Tab switch-client -l
|
bind Tab switch-client -l
|
||||||
|
|
||||||
|
bind R command-prompt -p "Rename Window:" "rename-window '%%'"
|
||||||
bind t run-shell -b "~/.local/bin/t"
|
bind t run-shell -b "~/.local/bin/t"
|
||||||
bind Enter run-shell -b "~/.local/bin/s"
|
bind Enter run-shell -b "~/.local/bin/s"
|
||||||
bind Q confirm kill-session
|
bind Q confirm kill-session
|
||||||
|
|||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
test -z "$1" && exit
|
||||||
|
|
||||||
|
incus export $1 /srv/backup/$1-$(date +"%Y%m%d").tar.gz
|
||||||
Reference in New Issue
Block a user