mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 02:02:29 +00:00
Move powershell to posh
This commit is contained in:
23
posh/Microsoft.PowerShell_profile.ps1
Normal file
23
posh/Microsoft.PowerShell_profile.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# Add a SSH key to SSH-Agent
|
||||
function Add-Key {
|
||||
if ($args.Count -gt 0) {
|
||||
$filename = "$ENV:USERPROFILE\.ssh\id_ed25519_" + $args[0]
|
||||
if (!(Test-Path $filename -PathType Leaf)) {
|
||||
Write-Error "$filename does not exist."
|
||||
}
|
||||
else {
|
||||
Invoke-Expression "ssh-add $filename"
|
||||
}
|
||||
}
|
||||
else {
|
||||
Invoke-Expression "ssh-add -L"
|
||||
}
|
||||
}
|
||||
|
||||
$DotFilesPath = Join-Path $HOME '.dotfiles'
|
||||
$DotFilesAutodetect = $true
|
||||
$DotFilesAllowNestedSymlinks = $true
|
||||
|
||||
Import-Module posh-git
|
||||
Import-Module oh-my-posh
|
||||
Set-Theme Paradox
|
||||
4
posh/bootstrap.ps1
Normal file
4
posh/bootstrap.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
Install-Module posh-git -Scope CurrentUser
|
||||
Install-Module oh-my-posh -Scope CurrentUser
|
||||
Install-Module -Name PSDotFiles -Scope CurrentUser
|
||||
Reference in New Issue
Block a user