Profile and Module for Powershell use on (Fedora) Linux.
Why not. shrug.
I use oh-my-posh with a modified Honukai theme called Impact. It matches the prompt I had been using on FiSH Shell.
I use my own separate modules for systemctl/systemd manipulation. Found here: thebitstick/powershell-systemctl.
I also use Tyler/LeonhardtPSNotifySend, DTW-DanWard/Powershell-Beautify and cloudbase/powershell-yaml.
-
Update-Computer
flatpak update; sudo dnf upgrade --refresh
-
Get-DiskUsage
Implementsdf -h
as a nice looking table -
Get-DefaultKernel
Implementsgrubby --default-kernel
as a nice looking table -
Invoke-Sudo
sudo pwsh-preview "% $args"
-
Get-ComputerInfo
Implementsuname -a
,cat /etc/os-release
,lscpu
, andGet-Uptime
as a nice looking list -
Write-EveryOtherOdd
Calculates "every other odd" in a range of numbers
Build-Assembly
Takes a MASM file and assembles it
-
Edit-Item
Wrapper for $EDITOR (currently nvim) -
Edit-PrivilegedItem
Calls $EDITOR withInvoke-Sudo
-
New-PrivilegedItem
CallsNew-Item
withInvoke-Sudo
-
Remove-PrivilegedItem
CallsRemove-Item
withInvoke-Sudo
-
Clear-PrivilegedItem
CallsClear-Item
withInvoke-Sudo
-
Copy-PrivilegedItem
CallsCopy-Item
withInvoke-Sudo
-
Get-PrivilegedItem
CallsGet-Item
withInvoke-Sudo
-
Move-PrivilegedItem
CallsMove-Item
withInvoke-Sudo
-
Set-PrivilegedItem
CallsSet-Item
withInvoke-Sudo
-
Invoke-PrivilegedItem
CallsInvoke-Item
withInvoke-Sudo
- Connect-Shell:
ssh
- Build-C++:
g++
- Build-Rust:
rustc
- ls:
Get-ChildItem
- touch:
New-Item