mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
minor fix
This commit is contained in:
parent
520561edb3
commit
c3fa0c4b5c
8 changed files with 95 additions and 80 deletions
|
|
@ -54,7 +54,6 @@ $Env:VISUAL = "code --wait"
|
|||
$Env:FILE_MANAGER = "dopus.exe"
|
||||
|
||||
|
||||
${function:wsl2} = { wsl.exe --distribution kali-linux $args }
|
||||
${function:wini} = { winget install $args }
|
||||
${function:winr} = { winget uninstall $args }
|
||||
${function:wins} = { winget search $args }
|
||||
|
|
@ -72,3 +71,17 @@ if (Get-Command "sfsu.exe" -ErrorAction SilentlyContinue) {
|
|||
# Elevate in current shell
|
||||
# Set Windows Sudo to `inlined` sudo
|
||||
${function:su} = { sudo.exe pwsh }
|
||||
|
||||
function Show-WindowsNotification {
|
||||
param (
|
||||
[string]$Title,
|
||||
[Parameter(ValueFromPipeline=$true)]
|
||||
[string]$Message
|
||||
)
|
||||
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
$notifyIcon = New-Object System.Windows.Forms.NotifyIcon
|
||||
$notifyIcon.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon((Get-Command pwsh).Source)
|
||||
$notifyIcon.Visible = $true
|
||||
$notifyIcon.ShowBalloonTip(0,$Title,$Message,[System.Windows.Forms.ToolTipIcon]::Info)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue