File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ contains space-separated list of additional programs to restore.
2828
2929 set -g @resurrect-processes 'some_program "grunt->grunt development"'
3030
31+ - Use ` * ` to expand the arguments from the saved command when restoring:
32+
33+ set -g @resurrect-processes 'some_program "~rails server->rails server *"'
34+
3135- Don't restore any programs:
3236
3337 set -g @resurrect-processes 'false'
@@ -96,6 +100,20 @@ command name".
96100Full (long) process name is now ignored and you'll see just ` rails server ` in
97101the command line when the program is restored.
98102
103+ > What is asterisk ` * ` and why is it used?
104+
105+ (Please read the above clarifications about tilde ` ~ ` and arrow ` -> ` ).
106+
107+ Continuing with the ` rails server ` example, you might have added flags for e.g.
108+ verbose logging, but with the above configuration, the flags would be lost.
109+
110+ To preserve the command arguments when restoring, use the asterisk ` * ` : (** note** : there ** must** be a space before ` * ` )
111+
112+ set -g @resurrect-processes '"~rails server->rails server *"'
113+
114+ This option says: "when this process is restored use ` rails server ` as the
115+ command name, but preserve its arguments".
116+
99117> Now I understand the tilde and the arrow, but things still don't work for me
100118
101119Here's the general workflow for figuring this out:
You can’t perform that action at this time.
0 commit comments