mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 08:52:05 +02:00
Updated the manuals
This commit is contained in:
@@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's Git repositor
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-repos.ps1 [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/cd-repos.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@@ -49,14 +49,14 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
if (Test-Path "$HOME/Repos/" -pathType Container) { # try short name
|
||||
$path = "$HOME/Repos/"
|
||||
} elseif (Test-Path "$HOME/repos/" -pathType Container) {
|
||||
$path = "$HOME/repos/"
|
||||
} elseif (Test-Path "$HOME/Repositories/" -pathType Container) { # try long name
|
||||
$path = "$HOME/Repositories/"
|
||||
} elseif (Test-Path "$HOME/source/repos/" -pathType Container) { # try Visual Studio default
|
||||
$path = "$HOME/source/repos/"
|
||||
if (Test-Path "~/Repos/" -pathType Container) { # try short name
|
||||
$path = "~/Repos/"
|
||||
} elseif (Test-Path "~/repos/" -pathType Container) {
|
||||
$path = "~/repos/"
|
||||
} elseif (Test-Path "~/Repositories/" -pathType Container) { # try long name
|
||||
$path = "~/Repositories/"
|
||||
} elseif (Test-Path "~/source/repos/" -pathType Container) { # try Visual Studio default
|
||||
$path = "~/source/repos/"
|
||||
} elseif (Test-Path "/Repos/" -pathType Container) {
|
||||
$path = "/Repos/"
|
||||
} else {
|
||||
@@ -73,4 +73,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 08/15/2024 09:50:45)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 11/08/2024 12:34:45)*
|
||||
|
Reference in New Issue
Block a user