mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 18:03:35 +01:00
Add cd-pics.ps1
This commit is contained in:
parent
01dfa3b83c
commit
96635e4911
@ -8,6 +8,7 @@ cd-downloads.ps1, go to the user's downloads folder
|
||||
cd-dropbox.ps1, go to the user's dropbox folder
|
||||
cd-home.ps1, go to the user's home folder
|
||||
cd-music.ps1, go to the user's music folder
|
||||
cd-pics.ps1, go to the user's pictures folder
|
||||
cd-repos.ps1, go to the user's Git repositories folder
|
||||
cd-root.ps1, go to the root directory (C: on Windows)
|
||||
cd-scripts.ps1, go to the PowerShell Scripts folder
|
||||
|
|
@ -94,6 +94,7 @@ Mega Collection of PowerShell Scripts
|
||||
* [cd-dropbox.ps1](Scripts/cd-dropbox.ps1) - go to the user's dropbox folder
|
||||
* [cd-home.ps1](Scripts/cd-home.ps1) - go to the user's home folder
|
||||
* [cd-music.ps1](Scripts/cd-music.ps1) - go to the user's music folder
|
||||
* [cd-pics.ps1](Scripts/cd-pics.ps1) - go to the user's pictures folder
|
||||
* [cd-repos.ps1](Scripts/cd-repos.ps1) - go to the user's Git repositories folder
|
||||
* [cd-root.ps1](Scripts/cd-root.ps1) - go to the root directory (C:\ on Windows)
|
||||
* [cd-scripts.ps1](Scripts/cd-scripts.ps1) - go to the PowerShell Scripts folder
|
||||
|
17
Scripts/cd-pics.ps1
Executable file
17
Scripts/cd-pics.ps1
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/pwsh
|
||||
<#
|
||||
.SYNTAX cd-pics.ps1
|
||||
.DESCRIPTION go to the user's pictures folder
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
$TargetDir = resolve-path "$HOME/Pictures"
|
||||
set-location "$TargetDir"
|
||||
"📂$TargetDir"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user