These are my personal dotfiles, managed with chezmoi.
I use them:
- On my laptop running a personalized custom image of ghcr.io/ublue-os/aurora-dx
- In Distrobox containers
- A visual theme emphasizing visual consistency and readability, notably:
- Use of the One Dark color scheme wherever possible
- Use of Atkinson Hyperlegible as the sans serif font wherever possible
- Use of the Intel One Mono's patched Nerd Font as the monospace font wherever possible
- Avoidance of visual clutter
TODO: add screenshots
- A self-contained configuration for zsh, notably:
- Fast startup times (~0.2 s on my laptop)
- A clean prompt line, using powerlevel10k:
- with a similar look-and-feel as Starship's plain text symbols preset (only using ASCII symbols, for compatibility with virtual consoles)
- using instant prompt for fast startup times
- left-alignment of all elements to prevent terminal resizing weirdness
- a reduced set of elements focused on the kinds of projects I work on or might work on
- A fast, simple, and generalizable plugin system which just uses chezmoi to download plugins at pinned versions
- Organization of files into
$HOME/.config/zsh
and$HOME/.cache/zsh
- A self-contained configuration for bash:
- Fast startup times (~0.2 s on my laptop)
- A clean prompt line, using oh-my-posh (which I found to be extremely
fast, in contrast to Starship)
- configured to have a similar look-and-feel as my powerlevel10k prompt configuration
- a reduced set of modules focused on the kinds of projects I work on or might work on
- A fast, simple, and generalizable plugin system which just uses chezmoi to download plugins at pinned versions
- Synchronized, fuzzy-searchable shell history using atuin
- A Zellij configuration, notably:
- Custom keybindings for a simpler, more vim-like experience
- A modal usage model which defaults to locked mode as the base and enters normal mode using
Alt+i
to perform quick actions and access more advanced modes - A command-line script with a fuzzy-search menu for attaching to any Zellij session or creating a new session, designed to be run as an application launcher for Zellij in graphical desktops
- (WIP) A minimalistic Neovim configuration, notably:
- The Vim compatibility for all plugin-independent configuration
- Generally default keybindings to avoid disrupting muscle-memory on machines with the default keybindings
- lazy.nvim as the plugin manager
- mason.nvim as the language support tools manager
- (WIP) An lf configuration, notably:
- Nice previews of:
- Markdown files, using glow
- Other text files, using bat
- Raster images, using chafa with sixel-based graphics
- SVG images, using ImageMagick
- Videos, using FFMPEG
- (WIP) Integration with Neovim, the shell, and other tools
- Nice previews of:
- zoxide shell integration for easier navigation between directories
- A lazygit configuration for doing most of what I need
to do with git within a Zellij pane and/or from within lf, notably:
- A cleaner (and denser) view of the Git log
- A simple wezterm configuration (because wezterm is fast and
efficient, it's on Flathub, and I found that wezterm starts up much faster than Contour), notably:
- Very minimal keybindings, mostly attached to the
Ctrl+Shift
modifier, to avoid disrupting muscle-memory on other terminal emulators and to avoid keybinding conflicts - No keybindings for panes, since I use Zellij for panes and tabs
- No session management, since I use Zellij for session management
- Very minimal keybindings, mostly attached to the
- (WIP) KDE Plasma configurations & theming, notably:
- Custom keybindings, mostly attached to the
Meta
modifier, for manual window tiling
- Custom keybindings, mostly attached to the
All general-purpose CLI tools are installed and version-managed with aqua, except for packages listed in the prerequisites section.
To use this repository, you will first need to set up the dotfiles using chezmoi. Then you will need to set up global tools using aqua.
The following requirements must be met:
- You will need to have either bash or zsh (or both) installed. You probably already have bash installed.
If you want to take advantage of certain features, you will need to have some packages installed on your host environment:
- If you want to use Neovim: the Neovim build downloaded by aqua doesn't run on musl hosts such as Alpine Linux - in such environments, Neovim needs to be provided by the host. The shell configurations will default to using the host-provided neovim if it exists; otherwise, the aqua-provided Neovim will be used as a fallback.
- If you want to use LSP servers and other tools managed by mason.nvim, you will need to have tools
such as
go
,node
&npm
, andpython
andpip
installed (e.g. using Homebrew). Note: I have not yet figured out how to manage Homebrew from my dotfiles. - If you want to preview SVG images in LF, you will need ImageMagick, which is not provided by aqua.
- If you want to preview videos in LF, you will need FFMPEG, which is not provided by aqua.
- If you want to use zsh, you will need to have it already installed. I will eventually investigate the statically-linked zsh build to determine whether it might make sense to provide zsh via aqua or chezmoi.
To install the dotfiles on a new machine which already has chezmoi, run:
chezmoi init --apply ethanjli
Otherwise, you should run:
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b "$(mktemp -d)" init --apply ethanjli
This will set up the global aqua configuration without you having to install chezmoi first. Then the next step will install chezmoi for you.
On a machine without aqua, you can install aqua as follows:
curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v2.2.0/aqua-installer | bash
(this is only needed when this repository has packages which I have not yet contributed upstream to the standard aqua repository)
Then you should install the aqua tools by running:
aqua i -a
Run atuin login
.
TODO: add a keybindings cheatsheet
To bump the installed version of an aqua-provided tool after this repo bumps the configured version
to install, just run aqua i -a
.
To bump the installed version of a zsh or bash plugin after this repo bumps the configured version
to install, delete the cached plugin directory in ~/.cache/zsh/plugins
or ~/.cache/bash/plugins
,
and run chezmoi apply
.
If using local packages from this repository, you may first need to configure aqua to allow that:
cd ${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua
git init
aqua policy allow "${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua-policy.yaml"
Then you can run:
aqua g -o ${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml
TBD
To bump the version of a zsh or bash plugin, update the URL in .chezmoiexternal.toml
.
Except where otherwise indicated, source code provided here is covered by the following information:
Copyright Ethan Li
SPDX-License-Identifier: Apache-2.0 OR BlueOak-1.0.0
You can use the source code provided here either under the Apache 2.0 License or under the Blue Oak Model License 1.0.0; you get to decide. I am making the software available under the Apache license because it's OSI-approved, but I like the Blue Oak Model License more because it's easier to read and understand.