tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.42k stars 424 forks source link

Limit the search while restoring process to "basename" #391

Open poetaman opened 3 years ago

poetaman commented 3 years ago

As per the documentation from the documentation https://github.com/tmux-plugins/tmux-resurrect/blob/abbc4fbfc4a51948478d6b05f0c0d554111663a8/docs/restoring_programs.md, tmux-resurrect looks for string Vim in a statement like in the entire path.

set -g @resurrect-processes '~Vim -> vim'

This is a problem if the entire path has "Vim" in path to MacVim. For instance a user name "MichaelVim" on macOS path like /Users/MichaelVim/local/bin/<something> would match I guess?

Such problem can be solved by using the linux/unix command basename to remove the path before trying to match.