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 b744af1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions resurrect.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,29 @@ set_save_bindings() {
local key_bindings=$(get_tmux_option "$save_option" "$default_save_key")
local key
for key in $key_bindings; do
<<<<<<< Updated upstream
tmux bind-key -N "Save session" "$key" run-shell "$CURRENT_DIR/scripts/save.sh"
||||||| Stash base
tmux bind-key "$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"
>>>>>>> Stashed changes
done
}

set_restore_bindings() {
local key_bindings=$(get_tmux_option "$restore_option" "$default_restore_key")
local key
for key in $key_bindings; do
<<<<<<< Updated upstream
tmux bind-key -N "Restore session" "$key" run-shell "$CURRENT_DIR/scripts/restore.sh"
||||||| Stash base
tmux bind-key "$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"
>>>>>>> Stashed changes
done
}

Expand Down

0 comments on commit b744af1

Please sign in to comment.