File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ Note: this table assumes Nu 0.60.0 or later.
42
42
| | ` help --find <string> ` | Search for match in all available commands |
43
43
| ` command1 && command2 ` | ` command1; command2 ` | Run a command, and if it's successful run a second |
44
44
| ` stat $(which git) ` | ` stat (which git).path ` | Use command output as argument for other command |
45
+ | ` echo /tmp/$RANDOM ` | ` echo $"/tmp/(random integer)" ` | Use command output in a string |
46
+ | ` cargo b --jobs=$(nproc) ` | ` cargo b $"--jobs=(sys \| get cpu \| length)" ` | Use command output in an option |
45
47
| ` echo $PATH ` | ` echo $env.PATH ` | See the current path |
46
48
| ` <update ~/.bashrc> ` | ` vim $nu.config-path ` | Update PATH permanently |
47
49
| ` export PATH = $PATH:/usr/other/bin ` | ` let-env PATH = ($env.PATH \| append /usr/other/bin) ` | Update PATH temporarily |
You can’t perform that action at this time.
0 commit comments