ssh-agent ps1
This commit is contained in:
parent
773e9adbe2
commit
0e6b8f832b
1 changed files with 6 additions and 3 deletions
|
@ -27,8 +27,11 @@ $Editor = "C:\Users\Owner\AppData\Local\Programs\Microsoft VS Code\Code.exe"
|
||||||
# oh my posh
|
# oh my posh
|
||||||
# oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/capr4n.omp.json | Invoke-Expression
|
# oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/capr4n.omp.json | Invoke-Expression
|
||||||
|
|
||||||
# enable ssh-agent
|
# shortcut to enable ssh-agent
|
||||||
#sudo Set-Service -Name ssh-agent -StartupType Manual | Start-Service ssh-agent
|
function Enable-SshAgent {
|
||||||
|
sudo Set-Service -Name ssh-agent -StartupType Manual && Start-Service ssh-agent
|
||||||
|
}
|
||||||
|
# execute "ssh-add" to add keys
|
||||||
|
|
||||||
# chezmoi completion
|
# chezmoi completion
|
||||||
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
|
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
|
||||||
|
@ -48,4 +51,4 @@ Register-ArgumentCompleter -Native -CommandName winget -ScriptBlock {
|
||||||
winget complete --word="$Local:word" --commandline "$Local:ast" --position $cursorPosition | ForEach-Object {
|
winget complete --word="$Local:word" --commandline "$Local:ast" --position $cursorPosition | ForEach-Object {
|
||||||
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
|
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue