This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName System.Windows.Forms | |
| [System.Windows.Forms.Application]::SetSuspendState([System.Windows.Forms.Powerstate]::Suspend, $false, $false) | Out-Null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$name, | |
| [string]$text, | |
| [switch]$h | |
| ) | |
| if ($h) { | |
| Write-Host "Usage:" | |
| Write-Host " quicknote <NAME> <TEXT> ==> positional parameters" | |
| Write-Host " or" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [Parameter(Mandatory)]$filename | |
| ) | |
| if ([string]::IsNullOrEmpty($filename)) { | |
| Write-Error "No filename specified" | |
| return | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [CmdletBinding(PositionalBinding=$false)] | |
| param ( | |
| [switch]$load, | |
| [switch]$save, | |
| [switch]$h | |
| ) | |
| if ($h) { | |
| Write-Host "Usage:" | |
| Write-Host " obsidian ==> opens Obsidian" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prerequisites: PS-Menu module | |
| function Install-Menu { | |
| $choice = Read-Host "PS-Menu module is needed. Do you want to install it? [Y] Yes, [N] No" | |
| $choice = $choice.ToLower() | |
| if ($choice -eq "y" -or $choice -eq "yes") { | |
| Install-Module -Name PS-Menu | |
| Write-Host "Instalation completed successfully." | |
| } | |
| elseif ($choice -eq "n" -or $choice -eq "no") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [string]$path, | |
| [switch]$h | |
| ) | |
| if ($h) { | |
| Write-Host "Options:" | |
| Write-Host " + proj (Projects)" | |
| Write-Host " + dwn (Downloads)" | |
| Write-Host " + scr (Scripts)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Terminal Icons (Nerd Font needed for this to work) | |
| Import-Module -Name Terminal-Icons | |
| # PSReadline | |
| Import-Module -Name PSReadline | |
| Set-PSReadLineOption -PredictionSource History | |
| Set-PSReadLineOption -PredictionViewStyle ListView | |
| Set-PSReadLineOption -EditMode Windows | |
| # Custom Prompt |