mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-29 14:40:57 +02: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-downloads.ps1, go to the user's downloads folder
|
||||||
go-home.ps1, go to the user's home folder
|
go-home.ps1, go to the user's home folder
|
||||||
go-music.ps1, go to the user's music 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-root.ps1, go to the root directory (C: on Windows)
|
||||||
go-scripts.ps1, go to the PowerShell Scripts folder
|
go-scripts.ps1, go to the PowerShell Scripts folder
|
||||||
hibernate.ps1, enables hibernate mode for the local computer (needs admin rights)
|
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-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-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-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-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
|
* [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
|
* [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…
x
Reference in New Issue
Block a user