Update dotfiles
This commit is contained in:
parent
f7bc6a3032
commit
ccec01d15f
@ -8,4 +8,20 @@ if (Test-Path alias:pwd) {
|
|||||||
if (Test-Path alias:dotfolder) {
|
if (Test-Path alias:dotfolder) {
|
||||||
Remove-Alias -Name dotfolder
|
Remove-Alias -Name dotfolder
|
||||||
}
|
}
|
||||||
function dotfolder {Set-Location ~/.local/share/chezmoi}
|
Function dotfolder {Set-Location ~/.local/share/chezmoi}
|
||||||
|
|
||||||
|
if (Test-Path alias:dotcommit) {
|
||||||
|
Remove-Alias -Name dotcommit
|
||||||
|
}
|
||||||
|
|
||||||
|
Function dotcommit {
|
||||||
|
# If no arguments are passed, use the default message
|
||||||
|
if ($args.Length -eq 0) {
|
||||||
|
$message = "Update dotfiles"
|
||||||
|
} else {
|
||||||
|
$message = $args -join " "
|
||||||
|
}
|
||||||
|
chezmoi re-add
|
||||||
|
chezmoi diff
|
||||||
|
chezmoi git -- commit -a -m $message
|
||||||
|
}
|
@ -4,7 +4,5 @@ Invoke-Expression (&scoop-search --hook)
|
|||||||
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"
|
Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"
|
||||||
# Chezmoi
|
# Chezmoi
|
||||||
if (Get-Command chezmoi -ErrorAction SilentlyContinue) { chezmoi completion powershell | Out-String | Invoke-Expression }
|
if (Get-Command chezmoi -ErrorAction SilentlyContinue) { chezmoi completion powershell | Out-String | Invoke-Expression }
|
||||||
# LunarVim
|
|
||||||
Set-Alias lvim 'C:\Users\Isaac\.local\bin\lvim.ps1'
|
|
||||||
# Github CLI
|
# Github CLI
|
||||||
Invoke-Expression -Command $(gh completion -s powershell | Out-String)
|
Invoke-Expression -Command $(gh completion -s powershell | Out-String)
|
1012
scoop/apps.json
1012
scoop/apps.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user