tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

Limit the search while restoring process to "basename"

Open poetaman opened this issue 4 years ago • 0 comments

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.

poetaman avatar Jul 13 '21 16:07 poetaman