Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # SYS SHORTS
- #
- function Which-Location { Get-Command $args | Select Source -ExpandProperty Source }
- New-Alias which Which-Location
- del alias:cd -Force
- function Change-Directory { Set-Location -LiteralPath @args }
- New-Alias cd Change-Directory
- function Dns-Resolve { $args | Resolve-DnsName -DnsOnly }
- New-Alias dns Dns-Resolve
- New-Alias dns-clr Clear-DnsClientCache
- function Turn-Screens-Off { (Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2) }
- New-Alias soff Turn-Screens-Off
- #
- # WINGET SHORTS
- #
- function Winget-UpgradeAll { winget upgrade --all --include-unknown }
- New-Alias wup Winget-UpgradeAll
- function Winget-Search { winget search $args }
- New-Alias wis Winget-Search
- function Winget-Install { winget install $args }
- New-Alias wii Winget-Install
- #
- # APP SHORTS
- #
- function Launch-Neovim { wt --size 192,64 -d $pwd -p 'Neovim' 'nvim' $args }
- New-Alias vi Launch-Neovim
- #
- # PYTHON SHORTS
- #
- function PEnv-Init { penv init @args }
- New-Alias pei PEnv-Init
- function PEnv-Activate { penv activate }
- New-Alias pea PEnv-Activate
- function PEnv-Deactivate { deactivate }
- New-Alias ped PEnv-Deactivate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement