mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: powershell
This commit is contained in:
parent
81da252906
commit
298b2290a8
13 changed files with 308 additions and 278 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB |
23
dot_config/powershell/Microsoft.PowerShell_profile.ps1
Normal file
23
dot_config/powershell/Microsoft.PowerShell_profile.ps1
Normal 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 }
|
||||
1
dot_config/powershell/xaa
Normal file
1
dot_config/powershell/xaa
Normal file
|
|
@ -0,0 +1 @@
|
|||
/home/js0ny/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules
|
||||
6
scripts/run_once_powershell.ps1
Normal file
6
scripts/run_once_powershell.ps1
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue