Skip to content

mbgeorge48/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Haven't really tested this in WSL and the setup script won't work in regular Windows. So it might be worth manually copying them into place

Setup

  1. If you're on OSX then start by installing Apple's Command Line Tools, which are prerequisites for Git and Homebrew.
xcode-select --install
  1. Clone repo into new hidden directory.
# Use SSH (if set up)...
git clone git@github.com:mbgeorge48/dotfiles.git ~/.dotfiles

# ...or use HTTPS and switch remotes later.
git clone https://github.com/mbgeorge48/dotfiles.git ~/.dotfiles
  1. Run the setup script which will do most of the setting up for you
bash ~/.dotfiles/setup.sh

If you're setting up a work machine you can add work as an arg in the setup.sh script, like so bash ~/.dotfiles/setup.sh work

Specifics

For things not included in setup.sh

GPG and SSH keys for GitHub

Follow this guide to setup your GPG key

GPG keys

Once you have the keys on your machine simply run

gpg --import public.key
gpg --import private.key

After Brew installs Pinentry run echo "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.conf to save the pin entry path Restart gpgconf --kill gpg-agent

If the GPG key is throwning an error you can run this to help debug it

echo "test" | gpg --clearsign

You may want to set a default value for

  • default-cache-ttl
  • max-cache-ttl

in your ~/.gnupg/gpg-agent.conf if not using any pin entry software

SSH keys

If you're reusing a key...

#Download existing private key from somewhere
mv path/to/id_blabla ~/.ssh
chmod 600 ~/.ssh/id_blabla
ssh-add ~/.ssh/id_blabla

You might want to do something extra in the case you have 2 seperate ssh keys for the same site i.e. you've got a personal and a work GitHub account, if so you would want something like this in ~/.ssh/config:

Host github.com
    Hostname github.com
    User git
    AddKeysToAgent yes
    IdentitiesOnly yes
    IdentityFile ~/.ssh/id_blabla

Host work-git.luolix.top
    Hostname github.com
    User git
    AddKeysToAgent yes
    IdentitiesOnly yes
    IdentityFile ~/.ssh/id_blabla_work

Then when you're cloning from the work-github host you just change the url in the git clone to swap github.com to work.github.com

Follow this guide to setup you SSH key

Test your ssh connection to GitHub with

ssh -T git@github.com

Change Remote from HTTPs to SSH

git remote set-url origin git@github.com:mbgeorge48/dotfiles.git

Games

Bit of a random one but last time I reinstalled the game I lost it all so wanted to keep a backed up copy

CSGO

The autoexec lives ..\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg

The launch options I'm using are -refresh 144 -tickrate 128 +fps_max 0 -novid -nojoy nosteamcontroller -fullscreen +exec autoexec.cfg

TF2

The autoexec lives ..\Steam\steamapps\common\Team Fortress 2\tf\cfg

The launch options I'm using are -freq 144 -precachefontchars -novid -nojoy nosteamcontroller -fullscreen +exec autoexec.cfg

TODOs

  • Add some instructions on how to gather things like the brewfile and vscode extensions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published