adambonneruk / config-powershell

powershell configuration, including posh-git and useful functions/aliases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Config-PowerShell

My Windows PowerShell configuration, including posh-git and useful functions/aliases, I spend a lot of time in the Windows Terminal so having this configuration (publicly) available for different machines is useful.

Git Setup

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck

SSH Setup

create and map certificates

ssh-keygen -t ed25519 -C "adam@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/example

# Test
ssh -T git@example.com
ssh -T git@github.com

configure ssh config: vim ~/.ssh/config

Host example.com
	Hostname example.com
	AddKeysToAgent yes
	PreferredAuthentications publickey
	IdentityFile ~/.ssh/example

Host github.com
	Hostname github.com
	AddKeysToAgent yes
	PreferredAuthentications publickey
	IdentityFile ~/.ssh/github

Preview

Useful Links

About

powershell configuration, including posh-git and useful functions/aliases

License:MIT License


Languages

Language:PowerShell 87.9%Language:Batchfile 12.1%