mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 01:14:48 -06:00
- Add shared Nushell config templates in .chezmoitemplates/ - Create Windows-specific Nushell configs in AppData/Roaming/ - Add Windows Terminal settings.json configuration - Update PowerShell profile template - Consolidate Nushell env.nu and config.nu templates across platforms
45 lines
1.3 KiB
Cheetah
45 lines
1.3 KiB
Cheetah
# {{ template "banner.tmpl" .}}
|
|
# PowerShell Profile for Windows
|
|
# Managed by chezmoi
|
|
|
|
# Editor configuration
|
|
$env:EDITOR = "micro"
|
|
|
|
# OpenAI API Key
|
|
$env:OPENAI_API_KEY = "{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
|
|
|
# mise - polyglot tool version manager
|
|
# Activates mise if installed (provides tools like vault, node, python, etc.)
|
|
if (Get-Command mise -ErrorAction SilentlyContinue) {
|
|
Invoke-Expression (& mise activate pwsh | Out-String)
|
|
}
|
|
|
|
# Aliases - PowerShell equivalents of bash aliases
|
|
Set-Alias -Name nano -Value micro
|
|
Set-Alias -Name vim -Value nvim
|
|
Set-Alias -Name lg -Value lazygit
|
|
|
|
# Functions
|
|
function ll { Get-ChildItem -Force | Format-Table -AutoSize }
|
|
function la { Get-ChildItem -Force }
|
|
function es { & $PROFILE } # Reload profile
|
|
|
|
# Chezmoi aliases
|
|
function cha { chezmoi apply --interactive }
|
|
Set-Alias -Name ch -Value chezmoi
|
|
|
|
# Git aliases
|
|
function ga { git add $args }
|
|
function gaa { git add . }
|
|
function gc { git commit $args }
|
|
function gcm { git commit -m $args }
|
|
function gco { git checkout $args }
|
|
function gd { git diff $args }
|
|
function gs { git status $args }
|
|
function gp { git pull $args }
|
|
function gst { git stash $args }
|
|
|
|
# Initialize completions if available
|
|
if (Get-Command chezmoi -ErrorAction SilentlyContinue) {
|
|
# Chezmoi completion can be set up if needed
|
|
} |