tmux-resurrect
tmux-resurrect copied to clipboard
Corrected what is the expected value of the $CURRENT_DIR
It is necessary for the cases when running the scripts (as symlinks) without a possibility of using key bindings as advised in issue #179 https://github.com/tmux-plugins/tmux-resurrect/issues/179
The case is e.g. saving the sessions for byobu and having the symlinks created at $HOME/bin/ as: byobu-session-restore -> /home/delphym/.tmux/plugins/tmux-resurrect/scripts/restore.sh
byobu-session-save -> /home/delphym/.tmux/plugins/tmux-resurrect/scripts/save.sh
This is what it looks like when having a symlink in ~/bin ζ byobu-session-restore /home/delphym/bin/byobu-session-restore: line 5: /home/delphym/bin/variables.sh: No such file or directory /home/delphym/bin/byobu-session-restore: line 6: /home/delphym/bin/helpers.sh: No such file or directory /home/delphym/bin/byobu-session-restore: line 7: /home/delphym/bin/process_restore_helpers.sh: No such file or directory/home/delphym/bin/byobu-session-restore: line 8: /home/delphym/bin/spinner_helpers.sh: No such file or directory /home/delphym/bin/byobu-session-restore: line 347: supported_tmux_version_ok: command not found
Ideal seems to rename the $CURRENT_DIR variable, which I did at the first instance, but then it was still complaining on to execute l. 51 from check_tmux_version.sh