Add go-repos.ps1

This commit is contained in:
Markus Fleschutz 2021-04-16 16:51:46 +02:00
parent c0d474a674
commit 50cabecd57
3 changed files with 17 additions and 0 deletions

View File

@ -54,6 +54,7 @@ generate-qrcode.ps1, generates a QR code
go-downloads.ps1, go to the user's downloads folder
go-home.ps1, go to the user's home folder
go-music.ps1, go to the user's music folder
go-repos.ps1, go to the user's Git repositories folder
go-root.ps1, go to the root directory (C: on Windows)
go-scripts.ps1, go to the PowerShell Scripts folder
hibernate.ps1, enables hibernate mode for the local computer (needs admin rights)

1 Script Description
54 go-downloads.ps1 go to the user's downloads folder
55 go-home.ps1 go to the user's home folder
56 go-music.ps1 go to the user's music folder
57 go-repos.ps1 go to the user's Git repositories folder
58 go-root.ps1 go to the root directory (C: on Windows)
59 go-scripts.ps1 go to the PowerShell Scripts folder
60 hibernate.ps1 enables hibernate mode for the local computer (needs admin rights)

View File

@ -98,6 +98,7 @@ Mega Collection of PowerShell Scripts
* [go-downloads.ps1](Scripts/go-downloads.ps1) - go to the user's downloads folder
* [go-home.ps1](Scripts/go-home.ps1) - go to the user's home folder
* [go-music.ps1](Scripts/go-music.ps1) - go to the user's music folder
* [go-repos.ps1](Scripts/go-repos.ps1) - go to the user's Git repositories folder
* [go-root.ps1](Scripts/go-root.ps1) - go to the root directory (C:\ on Windows)
* [go-scripts.ps1](Scripts/go-scripts.ps1) - go to the PowerShell Scripts folder
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file

15
Scripts/go-repos.ps1 Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/pwsh
<#
.SYNTAX go-repos.ps1
.DESCRIPTION go to the user's Git repositories folder
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
set-location $HOME/Repos/
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}