i need to setup my dev enviroment again

Published on: Tue Dec 30 2025 02:00:00 GMT+0000 (Coordinated Universal Time)

Written by dynamitegus

Tags: devcomputerim-a-lazy-shmuck

So this is the easyiest way i have to write down my process of setting up my developer enviroment, thats VSCode and Git, with verification. At somepoint I want to move away from github to either codeberg or selfhosted forgejo but thats a later problem. if you are not me and are following this yourself you will need to change stuff that is specific to me

Things to install.

Terminal window
sudo emerge -a sys-apps/flatpak
flatpak remote-add --user --if-not-exists flatpak https://flathub.org/repo/flathub.flatpakrepo

Ok Cool time for the actually things

Git

Terminal window
sudo echo "dev-vcs/git +curl +webdav +perl keyring rust" >> sudo tee/etc/portage/package.use/git
sudo emerge -a dev-vcs/git

Bitwarden

Terminal window
flatpak install flathub com.bitwarden.desktop

VSCode

Terminal window
sudo echo "app-editors/vscode wayland" >> sudo tee /etc/portage/package.use/vscode
# this next one might not be nessesary depending on what licenses you agreed to when setting up gentoo
sudo echo "app-editors/vscode Microsoft-vscode" >> sudo tee /etc/portage/package.license
sudo emerge -a app-editors/vscode
VSCode Wiki page

setup time :joy:

add email and user to git

Terminal window
git config --global user.email "dynamitegus@dynamitegus.au"
git config --global user.name "dynamitegus"

add this line to ./.config/fish/config.fish

./.config/fish/config.fish
# bitwarden ssh
set --export SSH_AUTH_SOCK "/home/angus/.var/app/com.bitwarden.desktop/data/.bitwarden-ssh-agent.sock"

you then need to enable the ssh agent in settings in the bitwarden app

Check that it works:

Terminal window
ssh-add -L
# and
ssh -T git@github.com

Enable Gits signing you will need to put your public key in the path below and you will need to add the name of the key at the end of the file

Terminal window
git config --global gpg.format ssh
git config --global user.signingkey /home/angus/.config/githubsshpublic.pub

intheory that should work. i might add other configs at some point but we’ll see.