Collection of dotfiles
  • Lua 46.2%
  • Vim Script 43.6%
  • Shell 10.2%
Find a file
2026-11-26 10:05:18 +01:00
.config nvim: remove harper-ls, restore gr references map 2026-11-26 10:05:18 +01:00
.local/bin Sync local config drift 2026-08-28 15:45:48 +02:00
.newsboat newsboat: restore config lost to a bad reset 2026-08-29 13:49:43 +02:00
.scripts add git, shell and tool configs 2026-09-24 15:24:53 +02:00
.zsh/completion add git, shell and tool configs 2026-09-24 15:24:53 +02:00
.gitattributes add git, shell and tool configs 2026-09-24 15:24:53 +02:00
.gitconfig add git, shell and tool configs 2026-09-24 15:24:53 +02:00
.gitignore_global git: ignore .claude/settings.local.json globally 2026-11-26 10:05:18 +01:00
.nbrc Sync local config drift 2026-08-28 15:45:48 +02:00
.sqliterc add git, shell and tool configs 2026-09-24 15:24:53 +02:00
.tmux.conf Update: ncspot, nvim and tmux configs. 2023-07-20 22:21:26 +02:00
.zshrc zsh: add addyto, builds an addy.io send-from address 2026-11-26 10:05:18 +01:00
LICENSE Add: readme and license 2023-06-22 11:21:58 +02:00
README.md Update clone URLs to the new forge 2026-08-28 16:07:10 +02:00

Dotfiles

A very simple dotfiles setup - no special tools, just git and zsh.

Inspired by this HN post.

Initial Setup

# create the .dotfiles repository
git init --bare $HOME/.dotfiles

# add an alias to manage the dotfiles
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc

# reload zsh so the alias is available
source ~/.zshrc

# set git status to hide untracked files
dotfiles config --local status.showUntrackedFiles no

# add the remote
dotfiles remote add origin git@git.ghostze.ro:felixdv/dotfiles.git

Usage

# dotfiles status
dotfiles status

# add files and commit
dotfiles add .config/nvim/init.lua
dotfiles add .config/nvim/lua
dotfiles commit -m "Add vim config"

# push changes to remote
dotfiles push

New Computer Setup

A normal git clone will fail if your home directory isn't empty. To get around that, clone the repo's working directory into a temporary directory first and then delete that directory:

# clone your dotfiles from the remote
git clone --separate-git-dir=$HOME/.dotfiles git@git.ghostze.ro:felixdv/dotfiles.git $HOME/dotfiles-tmp

# remove the temporary directory
rm -r ~/dotfiles-tmp/

# set up the alias again
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc