dotfiles

nvim, tmux, zsh, fzf, sway, and more!

Stars
130

My ~

Minimal, performance-focused dotfiles. Extremely snappy without sacrificing convenience.

Usage

My $HOME directory is basically just a Git repository that ignores untracked files by default, allowing me to manage my dotfiles like any other projects.

; ~/.git/config
[status]
    showUntrackedFiles = no

I also have an automated setup that can configure everything from scratch using Nix, which is available at khuedoan/nixos-setup.

My dotfiles are optimized for Linux, but since they are POSIX compliant, they should work on macOS or BSD as well (as long as the necessary packages are available).

Please feel free to copy bits and pieces that you like ;)

Performance

I always try to lazy load where possible. This section attempts to demonstrate how snappy it is.

  • Last updated: December 7, 2023
  • Hardware: Ryzen 5 5600X, 32GB of RAM, running NixOS 23.11

Opening Zsh:

time zsh -i -c exit (47ms)

zsh -i -c exit  0.04s user 0.01s system 100% cpu 0.047 total

Opening the terminal (including waiting for the shell):

time foot zsh -i -c exit (67ms)

foot zsh -i -c exit  0.05s user 0.02s system 103% cpu 0.067 total

Opening Neovim with 32 plugins:

:Lazy profile (15ms)

Startuptime: 15.46ms

Based on the actual CPU time of the Neovim process till UIEnter.
This is more accurate than `nvim --startuptime`.
  LazyStart 4.97ms
  LazyDone  10.65ms (+5.68ms)
  UIEnter   15.46ms (+4.81ms)

Acknowledgements