cd, chdir, set-location, sl: add PowerShell alias and standardize page (#11209)

This commit is contained in:
Reinhart Previano Koentjoro
2023-10-25 12:13:51 +07:00
committed by GitHub
parent 5097efb814
commit 08d67b5837
4 changed files with 70 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
# Set-Location
> Display the current working directory or move to a different directory.
> This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-location>.
- Go to the specified directory:
`Set-Location {{path\to\directory}}`
- Go to a specific directory in a different drive:
`Set-Location {{C}}:{{path\to\directory}}`
- Go and display the location of specified directory:
`Set-Location {{path\to\directory}} -PassThru`
- Go up to the parent of the current directory:
`Set-Location ..`
- Go to the home directory of the current user:
`Set-Location ~`
- Go back/forward to the previously chosen directory:
`Set-Location {{-|+}}`
- Go to root of current drive:
`Set-Location \`