diff --git a/docs/build/smart-contracts/getting-started/setup.mdx b/docs/build/smart-contracts/getting-started/setup.mdx index 183ce8168..e8064c512 100644 --- a/docs/build/smart-contracts/getting-started/setup.mdx +++ b/docs/build/smart-contracts/getting-started/setup.mdx @@ -227,6 +227,8 @@ 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 +if (-Not (Test-Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE | Out-Null } Add-Content $PROFILE 'Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete' Add-Content $PROFILE 'stellar completion --shell powershell | Out-String | Invoke-Expression' ```