Move powershell to posh

This commit is contained in:
2020-07-14 17:35:55 +01:00
parent 4687c226ba
commit 1007c3e420
2 changed files with 9 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# Add a SSH key to SSH-Agent
function Add-Key {
if ($args.Count -gt 0) {
$filename = "$ENV:USERPROFILE/.ssh/id_ed25519_" + $args[0]
$filename = "$ENV:USERPROFILE\.ssh\id_ed25519_" + $args[0]
if (!(Test-Path $filename -PathType Leaf)) {
Write-Error "$filename does not exist."
}
@@ -14,6 +14,10 @@ function Add-Key {
}
}
$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
View File

@@ -0,0 +1,4 @@
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSDotFiles -Scope CurrentUser