Skip to content

Commit 0db15ed

Browse files
committed
Better way to add note without causing error on old versions
1 parent bbce97d commit 0db15ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resurrect.tmux

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ set_save_bindings() {
99
local key_bindings=$(get_tmux_option "$save_option" "$default_save_key")
1010
local key
1111
for key in $key_bindings; do
12-
tmux bind-key -N "Save session" "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
12+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
13+
tmux bind-key -N "Save session" "$key"
1314
done
1415
}
1516

1617
set_restore_bindings() {
1718
local key_bindings=$(get_tmux_option "$restore_option" "$default_restore_key")
1819
local key
1920
for key in $key_bindings; do
20-
tmux bind-key -N "Restore session" "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
21+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
22+
tmux bind-key -N "Restore session" "$key"
2123
done
2224
}
2325

0 commit comments

Comments
 (0)