Skip to content

Commit

Permalink
Better way to add note without causing error on old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eggbean committed May 15, 2023
1 parent bbce97d commit 0db15ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resurrect.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ set_save_bindings() {
local key_bindings=$(get_tmux_option "$save_option" "$default_save_key")
local key
for key in $key_bindings; do
tmux bind-key -N "Save session" "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
tmux bind-key -N "Save session" "$key"
done
}

set_restore_bindings() {
local key_bindings=$(get_tmux_option "$restore_option" "$default_restore_key")
local key
for key in $key_bindings; do
tmux bind-key -N "Restore session" "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
tmux bind-key -N "Restore session" "$key"
done
}

Expand Down

0 comments on commit 0db15ed

Please sign in to comment.