DannyDannyDanny / dotfiles

how i like my dev machine
MIT License
1 stars 0 forks source link

dotfiles

This repo is an extension of dannydannydanny/methodology

  1. Debian Setup (+ customizations)
  2. Core Tool Chain (fish, tmux, nvim, fzf)
  3. Customizations (github via ssh, ...)

Roadmap:

Debian Setup

Windows

WSL

wsl --install --web-download -d Debian
# <set username>
# <set password
# debian launches automatically

# set Debian as default (equivalent to `wsl -s Debian`)
wsl --set-default Debian

# update wsl
wsl --update --web-download

# launch debian in the home directory
wsl ~

# stabilize wsl.conf (so it doesn't overwrite `resolv.conf` in next step)
sudo touch /etc/wsl.conf
echo [network] | sudo tee -a /etc/wsl.conf > /dev/null
echo generateResolvConf = false | sudo tee -a /etc/wsl.conf > /dev/null

# fix WSL nameserver
echo 'nameserver 8.8.8.8' | sudo tee -a /etc/resolv.conf > /dev/null
sudo apt update && sudo apt upgrade -y

# install dependencies for dotfiles installation
sudo apt install -y git curl

# install dependencies for tmux
sudo apt install -y build-essential ncurses-dev

Clone repo SSH method

Skip this if you don't plan on getting SSH access to github repos and clone with HTTP instead

generate ssh

ssh-keygen -q -t ed25519 -N '' -f ~/.ssh/id_ed25519_github <<<y >/dev/null 2>&1

# echo 'older machines might not support ed25519, then use RSA with 4096 bit key'
# echo  'ssh-keygen -q -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa_github <<<y >/dev/null 2>&1'

# add the output to https://github.com/settings/ssh/new
cat ~/.ssh/id_*_github.pub
# add to https://github.com/settings/ssh/new

activate ssh

echo 'adding key to ssh-agent'
eval `ssh-agent -s`  # if using fish shell run: eval "$(ssh-agent -c)"
ssh-add ~/.ssh/id_*_github

# download dotfiles repo
git clone git@github.com:DannyDannyDanny/dotfiles.git

# config git
cd dotfiles
git config user.name "DannyDannyDanny"
git config user.email "dth@taiga.ai"
git config pull.rebase false

# install dotfiles
bash install.sh

# hop back out
cd ..

Clone repo HTTP method

git clone https://github.com/DannyDannyDanny/dotfiles.git

add sshd persistency

fisher

curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher install jorgebucaran/nvm.fish