Skip to content

Commit 0776479

Browse files
MihirR-BSclaude
andcommitted
LTS-5452: shell labels in prose; .exe in the binary note
zsh (macOS default) has interactive_comments off, so pasted '#' lines printed errors; the labels now sit outside the sh fences. The placement note names browserstack-cli.exe for Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c4c4006 commit 0776479

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ This repo contains samples for running [WebdriverIO](https://webdriver.io/) test
1414

1515
The BrowserStack CLI reads your credentials from environment variables. Copy your username and access key from [Account Settings](https://www.browserstack.com/accounts/settings) and export them in the shell you run the test from:
1616

17+
On macOS or Linux (bash or zsh), run the lines below. The second one prompts for the key without echoing it, so the key stays out of your shell history:
18+
1719
```sh
18-
# macOS / Linux (bash or zsh)
1920
export BROWSERSTACK_USERNAME="<your-username>"
20-
# Type the key at the prompt: it is not echoed, and it stays out of your shell history
2121
printf 'BrowserStack access key: '; read -rs BROWSERSTACK_ACCESS_KEY; echo; export BROWSERSTACK_ACCESS_KEY
2222
```
2323

24+
On Windows, run these in PowerShell. The second line prompts for the key in the same way:
25+
2426
```powershell
25-
# Windows (PowerShell)
2627
$env:BROWSERSTACK_USERNAME = "<your-username>"
27-
# Type the key at the prompt: it is not echoed, and it stays out of your PowerShell history
2828
$env:BROWSERSTACK_ACCESS_KEY = [System.Net.NetworkCredential]::new('', (Read-Host -AsSecureString 'BrowserStack access key')).Password
2929
```
3030

0 commit comments

Comments
 (0)