Skip to content

Commit

Permalink
Add better powershell instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Nov 16, 2024
1 parent 738242d commit d0aa4eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/build/smart-contracts/getting-started/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ echo "stellar completion --shell fish | source" >> ~/.config/fish/config.fish
To enable autocomplete on the current shell session:

```powershell
Invoke-Expression (stellar completion --shell powershell)
stellar completion --shell powershell | Out-String | Invoke-Expression
```

To enable autocomplete permanently, run the following commands, then restart your terminal:

```powershell
New-Item -ItemType Directory -Path $(Split-Path $PROFILE) -Force
New-Item -ItemType Directory -Path $USERPROFILE\.config\stellar -Force
if (-Not (Test-Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE | Out-Null }
echo "Invoke-Expression (stellar completion --shell powershell)" >> $PROFILE
echo "Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete" >> $PROFILE
echo 'stellar completion --shell powershell | Out-String | Invoke-Expression' >> $PROFILE
```

</TabItem>
Expand Down

0 comments on commit d0aa4eb

Please sign in to comment.