Skip to content

Commit 436781c

Browse files
committed
🎨 📝
1 parent 13a3536 commit 436781c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ import { … } from "nodejsscript";
6060

6161
### shelljs
6262
The `shelljs` extension is available as `s`. For docs visits [shelljs/shelljs](https://github.com/shelljs/shelljs).
63-
You can pipe commands when make sense by changing see **[Pipes](https://github.com/shelljs/shelljs#pipes)**.
63+
You can pipe commands when make sense by chaining, see **[Pipes](https://github.com/shelljs/shelljs#pipes)**.
64+
Available commands: `ls`, `find`, `dirs`, `cd`, `pwd`, `pushd`, `popd`, `cp`, `rm`, `mv`, `mkdir`, `ln`, `touch`, `tempdir`, `chmod`, `test`, `error`, `cat`, `sed`, `grep`, `sort`, `head`, `tail`, `uniq`, `which`, `exit`, `env`, `exec`.
6465

6566
```js
6667
s.cat("./package.json").grep("version");

src/shelljs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function xargs({ needle }, ...args){
2828
if(!replaced) args_final.push(pipe);
2929
return cmd.apply(null, args_final);
3030
}
31-
function $(config_next= "-s"){
32-
config_next= plugin.parseOptions(config_next, {
31+
function $(config_next){
32+
config_next= !config_next ? Object.assign({}, shelljs.config, { silent: true }) : plugin.parseOptions(config_next, {
3333
v: "verbose",
3434
f: "fatal",
3535
s: "silent"

0 commit comments

Comments
 (0)