A repo to hold my terminal configuration. Feel free to use this as a reference for your own.
I use this to quickly set up my terminal between machines.
- Clone the repository
git clone [email protected]:paulegradie/TerminalConfiguration.git
-
Install Oh-My-Posh (via the Windows Store) or run:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
-
Set your execution privelages (Run As Admin plz)
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
-
Install Posh-Git
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
OR
choco install poshgit
-
Install your perferred font from
WindowsTerminal/fonts
by double clicking the font file or install your favorite NerdFont from nerdfonts.com.This is for supporting Oh-My-Posh themes ( you may need to go to your windows > Settings > Fonts - and install there).
-
Finally, run
setup.ps1
from theWindowsTerminal
directory and restart Windows Terminal
-
Clone this repo into your home directory
-
Copy the contents of the
GitBash
directory into your home directory.
Description:
Typically on terminal startup, the terminal will source your .bashrc
, which will source your .bash_profile
. So you'll want to place most of your configuration into the `.bash_profile``
// ~/.bashrc
#!/usr/bin/env bash
source ~/TerminalConfiguration/GitBash/.bash_profile
// and ~/.bash_profile
#!/usr/bin/env bash
source ~/TerminalConfiguration/GitBash/.bash_profile
-
ssh-keygen -t ed25519 -C "[email protected]" # Paste your .pub key into the github settings ssh secrets
-
Create a
~/.ssh
directory and add aconfig
file with contents using vs codecd ~ mkdir .ssh cd .ssh ssh-keygen code .ssh/config
-
Paste the following
Host * IdentitiesOnly yes AddKeysToAgent yes TCPKeepAlive yes Host github.com HostName github.com User git IdentityFile ~/.ssh/id_rsa
-
Go add the key to your github ssh key settings
Set code to be the default rebase editor
git config --global core.editor "code --wait"