Skip to content

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

License

Notifications You must be signed in to change notification settings

adambonneruk/config-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks