@@ -5,9 +5,7 @@ services: Azure
5
5
documentationcenter : ' '
6
6
author : theJasonHelmick
7
7
manager : mgreene
8
- tags : cloud-shell
9
8
10
- ms.assetid :
11
9
ms.service : cloud-shell
12
10
ms.workload : infrastructure-services
13
11
ms.tgt_pltfrm : vm-linux
@@ -87,20 +85,10 @@ profile exists in Cloud Shell.
87
85
Test-Path -Path $Profile
88
86
```
89
87
90
- If the output is ** True** , then a profile already exists. Edit the existing profile to add the
91
- commands to configure the color and behavior of Predictive IntelliSense. Use the built-in
92
- open-source editor to edit the profile. To learn more, see [ Azure Cloud Shell editor] [ 04 ] .
93
-
94
- Use the built in Cloud Shell editor to edit the profile:
95
-
96
- ``` powershell
97
- Code $Profile
98
- ```
88
+ ### How to Create a PowerShell profile in Cloud Shell
99
89
100
90
If the output is ** False** , create a profile and add the customized color and behavior commands.
101
91
102
- ### How to Create a PowerShell profile in Cloud Shell
103
-
104
92
To store configuration commands for Predictive IntelliSense, Use the ` New-Item ` cmdlet to create a
105
93
PowerShell profile.
106
94
@@ -127,14 +115,26 @@ Set-PSReadLineOption -PredictionSource History
127
115
Set-PSReadLineOption -Colors @{ InLinePrediction = '#8d8d8d' }
128
116
```
129
117
118
+ ### How to Edit a PowerShell profile in Cloud Shell
119
+
120
+ If the output is ** True** , then a profile already exists. Edit the existing profile to add the
121
+ commands to configure the color and behavior of Predictive IntelliSense. Use the built-in
122
+ open-source editor to edit the profile. To learn more, see [ Azure Cloud Shell editor] [ 04 ] .
123
+
124
+ Use the built in Cloud Shell editor to edit the profile:
125
+
126
+ ``` powershell
127
+ Code $Profile
128
+ ```
129
+
130
130
For more information about configuring PSReadLine and managing predictors, see
131
131
[ Using predictors in PSReadLine] [ 05 ] .
132
132
133
133
<!-- link references -->
134
- [ 01 ] : https://learn.microsoft.com /powershell/module/psreadline/about/about_psreadline
135
- [ 02 ] : https://learn.microsoft.com /powershell/azure/az-predictor
136
- [ 03 ] : https://learn.microsoft.com /powershell/module/psreadline/set-psreadlineoption
137
- [ 04 ] : https://learn.microsoft.com /azure/cloud-shell/using-cloud-shell-editor
138
- [ 05 ] : https://learn.microsoft.com /powershell/scripting/learn/shell/using-predictors
139
- [ 06 ] : https://learn.microsoft.com /powershell/module/microsoft.powershell.core/about/about_profiles
134
+ [ 01 ] : /powershell/module/psreadline/about/about_psreadline
135
+ [ 02 ] : /powershell/azure/az-predictor
136
+ [ 03 ] : /powershell/module/psreadline/set-psreadlineoption
137
+ [ 04 ] : /azure/cloud-shell/using-cloud-shell-editor
138
+ [ 05 ] : /powershell/scripting/learn/shell/using-predictors
139
+ [ 06 ] : /powershell/module/microsoft.powershell.core/about/about_profiles
140
140
0 commit comments