mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Add go-repos.ps1
This commit is contained in:
parent
c0d474a674
commit
50cabecd57
@ -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)
|
||||
|
|
@ -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
15
Scripts/go-repos.ps1
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user