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.
28
28
29
29
set -g @resurrect-processes 'some_program "grunt->grunt development"'
30
30
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
+
31
35
- Don't restore any programs:
32
36
33
37
set -g @resurrect-processes 'false'
@@ -96,6 +100,20 @@ command name".
96
100
Full (long) process name is now ignored and you'll see just ` rails server ` in
97
101
the command line when the program is restored.
98
102
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
+
99
117
> Now I understand the tilde and the arrow, but things still don't work for me
100
118
101
119
Here's the general workflow for figuring this out:
You can’t perform that action at this time.
0 commit comments