Skip to content

agoodshort/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

My chezmoi dotfiles

Installation

1. Homebrew

1.1. Install Homebrew and required tools

Install the Homebrew dependencies for Linux

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Warning: Make sure to follow the steps in "next steps" displayed after the installation.

1.2. Install jq and lpass

brew install jq lastpass-cli
lpass login --trust USERNAME

2. Setup ssh for GitHub

2.1. Create ssh key

mkdir ~/.ssh && cd $_
ssh-keygen -t ed25519 -C "adrien.goodshort@gmail.com" -f "github-agoodshort"
if [[ $OSTYPE == 'darwin'* ]]; then
	pbcopy <~/.ssh/github-agoodshort.pub # copy public key to clipboard
else
	wl-copy <~/.ssh/github-agoodshort.pub # https://neovim.io/doc/user/provider.html#provider-clipboard
fi

2.2. Associate the key with GitHub

Add the copied key in your GitHub Profile SSH keys.

2.3. Add the GitHub SSH key to known_host

curl --silent https://api.github.com/meta |
	jq --raw-output '"github.com "+.ssh_keys[]' >>~/.ssh/known_hosts

3. Getting started with chezmoi

Install Visual Studio Code before installing chezmoi as brew will fail to install Visual Studio Code extensions during the first run.

if [[ ! -x "$(command -v code)" ]]; then

	if [[ $OSTYPE == 'darwin'* ]]; then
		brew install --cask visual-studio-code
	else
		if [[ -x "$(command -v snap)" ]]; then
			snap install code --classic
		elif [[ -x "$(command -v yay)" ]]; then
			yay -S code --noconfirm
		else
			echo "snap or yay is not installed, cannot install Visual Studio Code"
		fi
	fi

else
	brew install chezmoi
	chezmoi init --apply agoodshort
fi

4. Install node through nvm

nvm install lts/gallium
nvm use lts/gallium

5. Additional steps based on OS

Tools

List of tools used is available in Tools.

To-Do

  • Set custom/pamac-yay in waybar as a template to work based on the OS
  • List cargo
  • Configure Calcurse
  • Create a bootstrap script to install the brew bases and login to lastpass
  • Look at Timeshift and find out how to partition properly
  • Review zathura and qpdf for pdf and file preview
  • fix flatpak install and description in Tools
  • Work on the format with {{ end -}}
  • Mount secondary drive as home folder
  • Change zsh/ to exact_zsh/

References

Git multi user