Skip to content

🌺 ghostty, git, helix, mpv, ssh, zsh

Notifications You must be signed in to change notification settings

jedahan/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jedahan's dotfiles for ghostty, zsh, hx, jj, ssh, and mpv on macOS.

Customizations are minimal, understandable, and independent, so newcomers can dive in.

check out the linux branch

screenshot

Installation

Clone this repository

jj git clone https://github.com/jedahan/dotfiles.git ~/.dotfiles

Backup existing files

jj --repository ~/.dotfiles file list | xargs -I _ mv -vi "$HOME/_" "$HOME/_.backup"

Symlink dotfiles to home directory

jj --repository ~/.dotfiles file list | xargs -I _ ln -sf "$HOME/.dotfiles/_" "$HOME/_"

Setup function for managing dotfiles when in home directory

jj() { command jj $([[ "$PWD" == "$HOME" ]] && echo "--repository .dotfiles") "$@"; }

Usage

Manage changes with jj in your home directory

jj status

Add a config file to git

cd
mv .config/app.toml .dotfiles/.config/app.toml
ln -sf .dotfiles/.config/app.toml ~/.config/app.toml
jj describe --message 'track app config'

Uninstallation

Backup existing files

jj --repository ~/.dotfiles file list | xargs -I _ mv -vi "$HOME/_" "$HOME/_.backup"

Copy dotfiles from repo back to home

jj --repository ~/.dotfiles file list | xargs -I _ cp -i "$HOME/.dotfiles/_" "$HOME/_"