Skip to content

Commit 49a24a0

Browse files
authored
Updated Coming from Bash for reading a secret
Just because this seems like a super common use-case and it took me a little while to figure out how to do it as you don't get any hits for "secret" or "credential" when searching the website.
1 parent 6ec1882 commit 49a24a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

book/coming_from_bash.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ $env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin')
7373
| `\` | `( <command> )` | A command can span multiple lines when wrapped with `(` and `)` |
7474
| `pwd` | `$env.PWD` | Display the current directory |
7575
| `read var` | `let var = input` | Get input from the user |
76+
| `read -s secret` | `let secret = input -s` | Get a secret value from the user without printing keystrokes |
7677

7778
## History Substitutions and Default Keybindings:
7879

0 commit comments

Comments
 (0)