tmux-plugins/tmux-resurrect

node-dev / restore functionality

Open

#44 创建于 2014年9月18日

在 GitHub 查看
 (26 评论) (0 反应) (0 负责人)Shell (12,753 star) (509 fork)batch import
bughelp wantedopinion wanted

描述

Hey nice useful project here.

I noticed set -g @resurrect-processes '"~node-dev"' doesn't work, but i think set -g @resurrect-processes '"~node"' did restore, but restored only a blank node session, not my original node-dev index.js command.

I think node-dev actually calls node and the process runs as node.

What if tmux-restore detected whether a window had a process running, and you based restoring on the command that caused that program to run?

If I add node to my processes, i get a terminal that runs as if I had merely called node by itself, and it appears not to care what initially spawned the process.

This could be possible, right, by sniffing the history? I see the list of processes as a whitelist, interested by the currently running processes during a save. If they match, then run the same command again. Right?

贡献者指南