chezmoi: powershell

This commit is contained in:
js0ny 2025-09-27 13:32:43 +01:00
parent 81da252906
commit 298b2290a8
13 changed files with 308 additions and 278 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

View file

@ -0,0 +1,23 @@
# $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1
# ln -sf $DOTFILES/mac/Microsoft.PowerShell_profile.ps1 $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1
### Variables ###
$DOTFILES = "$HOME/.dotfiles"
### Load Configs ###
Get-ChildItem -Path $(Join-Path $DOTFILES "tools" "powershell") -Filter *.ps1 | ForEach-Object {. $_}
## Aliases ###
# PowerShell Equivalents #
# Set-Alias "curl" "Invoke-WebRequest"
# Set-Alias "man" "Get-Help"
Set-Alias "kill" "Stop-Process"
Set-Alias "open" "Invoke-Item" # Use ii instead of open
# Dev #
${function:zshcfg} = { nvim ~/.zshrc }
${function:bashcfg} = { nvim ~/.bashrc }

View file

@ -0,0 +1 @@
/home/js0ny/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules

View file

@ -0,0 +1,6 @@
#!/usr/bin/env pwsh
Install-Package PSFzf -Force
Install-Package CompletionPredictor -Force
git clone --depth 1 https://github.com/catppuccin/powershell.git (Join-Path $Env:PSModulePath.Split(':')[0] Catppuccin)