Skip to content

Commit

Permalink
Updated Coming from Bash for reading a secret (#1590)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vyadh authored Oct 16, 2024
1 parent 6ec1882 commit fdb5c24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/coming_from_bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ $env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin')
| `\` | `( <command> )` | A command can span multiple lines when wrapped with `(` and `)` |
| `pwd` | `$env.PWD` | Display the current directory |
| `read var` | `let var = input` | Get input from the user |
| `read -s secret` | `let secret = input -s` | Get a secret value from the user without printing keystrokes |

## History Substitutions and Default Keybindings:

Expand Down

0 comments on commit fdb5c24

Please sign in to comment.