mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-19 04:40:59 +00:00
[PowerShell/en] Markdown ```powershell didn't render properly
This commit is contained in:
parent
4a0bbbfb2e
commit
90a7e8ac49
@ -18,7 +18,7 @@ rather than plain text.
|
|||||||
[Read more here.](https://technet.microsoft.com/en-us/library/bb978526.aspx)
|
[Read more here.](https://technet.microsoft.com/en-us/library/bb978526.aspx)
|
||||||
|
|
||||||
If you are uncertain about your environment:
|
If you are uncertain about your environment:
|
||||||
```powershell
|
```
|
||||||
Get-ExecutionPolicy -List
|
Get-ExecutionPolicy -List
|
||||||
Set-ExecutionPolicy AllSigned
|
Set-ExecutionPolicy AllSigned
|
||||||
# Execution policies include:
|
# Execution policies include:
|
||||||
@ -33,7 +33,7 @@ $PSVersionTable
|
|||||||
```
|
```
|
||||||
|
|
||||||
Getting help:
|
Getting help:
|
||||||
```powershell
|
```
|
||||||
# Find commands
|
# Find commands
|
||||||
Get-Command about_* # alias: gcm
|
Get-Command about_* # alias: gcm
|
||||||
Get-Command -Verb Add
|
Get-Command -Verb Add
|
||||||
@ -49,7 +49,7 @@ Update-Help # Run as admin
|
|||||||
```
|
```
|
||||||
|
|
||||||
The tutorial starts here:
|
The tutorial starts here:
|
||||||
```powershell
|
```
|
||||||
# As you already figured, comments start with #
|
# As you already figured, comments start with #
|
||||||
|
|
||||||
# Simple hello world example:
|
# Simple hello world example:
|
||||||
@ -293,7 +293,7 @@ $Shortcut.Save()
|
|||||||
|
|
||||||
|
|
||||||
Configuring your shell
|
Configuring your shell
|
||||||
```powershell
|
```
|
||||||
# $Profile is the full path for your `Microsoft.PowerShell_profile.ps1`
|
# $Profile is the full path for your `Microsoft.PowerShell_profile.ps1`
|
||||||
# All code there will be executed when the PS session starts
|
# All code there will be executed when the PS session starts
|
||||||
if (-not (Test-Path $Profile)) {
|
if (-not (Test-Path $Profile)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user