Skip to content

A repository to hold all of my custom settings and configurations for various IDEs, projects (when standard) and terminals.

Notifications You must be signed in to change notification settings

paulegradie/TerminalConfiguration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TerminalConfiguration

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.

Windows Installation

  1. Clone the repository
    git clone [email protected]:paulegradie/TerminalConfiguration.git
  1. 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'))

  2. Set your execution privelages (Run As Admin plz)

    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm

  3. Install Posh-Git

    PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force

    OR

    choco install poshgit

  4. 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).

  5. Finally, run setup.ps1 from the WindowsTerminal directory and restart Windows Terminal

Non-Windows Installation

  1. Clone this repo into your home directory

  2. 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

Setting up git credentials

  1. Install Git for Windows

  2. Install VS Code

  3. Create a new SSH Key

        ssh-keygen -t ed25519 -C "[email protected]"
        # Paste your .pub key into the github settings ssh secrets
    
  4. Create a ~/.ssh directory and add a config file with contents using vs code

        cd ~
        mkdir .ssh
        cd .ssh
        ssh-keygen
        code .ssh/config
  5. Paste the following

        Host *
        IdentitiesOnly yes
        AddKeysToAgent yes
        TCPKeepAlive yes
    
        Host github.com
        HostName github.com
        User git
        IdentityFile ~/.ssh/id_rsa
    
  6. Go add the key to your github ssh key settings

Misc

Set code to be the default rebase editor

git config --global core.editor "code --wait"

About

A repository to hold all of my custom settings and configurations for various IDEs, projects (when standard) and terminals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published