yutkat/dotfiles
关于
最出色、最强大的 dotfiles。编辑器:Neovim;Shell:zsh(zinit、powerlevel10k);终端:WezTerm;桌面环境:Hyprland、walker、dunst;操作系统:NixOS、ArchLinux(Ubuntu/Fedora/CentOS)
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文dotfiles
Overview
My home dotfiles
Supported OS
GUI
- NixOS (recommend)
- Arch Linux (You must install various GUI apps yourself)
CLI
- NixOS
- Arch Linux
- Other Linux distributions (Nix or mise only; not tested in CI)
Install (NixOS)
Download
git clone https://github.com/yutkat/dotfiles.git cd dotfilesEdit Configuration
vi flake.nix # myHosts = {Install nix (+flake) and mise
./install.shSetup (installing tools)
sudo nixos-rebuild switch --flake .#<hostname>Link dotfiles (managed by
[dotfiles]inmise.toml)export PATH="$HOME/.local/bin:$PATH" # .zshenv adds this after linking mise trust mise bootstrap dotfiles applyzsh plugin install
exec zshInstall mise tools and run setup tasks
mise run setupneovim plugin install
vi --headless -c 'Lazy! sync' -c 'qall'Enjoy!
Install (Other OS)
Download
git clone https://github.com/yutkat/dotfiles.git cd dotfilesEdit Configuration
vi flake.nix # myHosts = {Install nix (+flake) and mise
./install.shSetup (installing tools)
The first run uses the locked Home Manager; afterwards
home-manager switchis available.# Default user and hostname nix run --inputs-from . home-manager -- switch --flake .#<hostname> # If you override NIX_USERNAME NIX_USERNAME=your_username nix run --inputs-from . home-manager -- switch --impure --flake .#<hostname>Link dotfiles (managed by
[dotfiles]inmise.toml)export PATH="$HOME/.local/bin:$PATH" # .zshenv adds this after linking mise trust mise bootstrap dotfiles applyLink sources are relative to the repository root, so any clone location works without extra configuration.
zsh plugin install
exec zshInstall mise tools and run setup tasks
mise run setupneovim plugin install
vi --headless -c 'Lazy! sync' -c 'qall'
Install (without Nix)
CLI-only setup with mise and the OS package manager. Nix-managed extras such as the Neovim egress sandbox are not available. This path is not tested in CI.
Install prerequisites with the OS package manager
git,zsh,curl,gcc,make,unzip,node(22+), andbun(mise installs npm-based tools with bun)# Arch Linux sudo pacman -S --needed git zsh curl gcc make unzip nodejs-lts-jod bunDistribution Node.js packages can be too old (e.g. Ubuntu); use the official installer in that case.
Install mise
curl https://mise.run | sh export PATH="$HOME/.local/bin:$PATH" # .zshenv adds this after linkingDownload
git clone https://github.com/yutkat/dotfiles.git cd dotfilesLink dotfiles (managed by
[dotfiles]inmise.toml)mise trust mise bootstrap dotfiles applyzsh plugin install
exec zshInstall mise tools and run setup tasks
mise run setupneovim plugin install
vi --headless -c 'Lazy! sync' -c 'qall'
Temporary Install
If you do not want to dirty your home directory
Setup the container
docker run -it --rm archlinux:latest /bin/bashSetup the environment
pacman -Sy --noconfirm sudo git useradd -m -s /bin/bash test echo 'test ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers su - testDownload
git clone https://github.com/yutkat/dotfiles.git cd dotfilesInstall nix and mise
./install.sh --single exec bashSetup (installing tools)
nix run --inputs-from . home-manager -- switch --flake .#testLink dotfiles (managed by
[dotfiles]inmise.toml)export PATH="$HOME/.local/bin:$PATH" # .zshenv adds this after linking mise trust mise bootstrap dotfiles applyzsh plugin install
exec zshInstall mise tools and run setup tasks
mise run setupneovim plugin install
vi --headless -c 'Lazy! sync' -c 'qall'
Components
- zsh
- neovim
- wezterm
- (optional) Hyprland
Usage
Frequently used shortcuts
wezterm
| key | action |
|---|---|
| Alt-h/j/k/l | switch window |
| Alt-j | close window |
| Alt-k | create window |
| S-Up/Down/Left/Right | switch pane |
Hyprland
| key | action |
|---|---|
| Mod-h/j/k/l | switch window |
| Mod-S-h/j/k/l | move window |
| Mod-C-S-h/j/k/l | move workspace |
Insight
Activity
Changes
Star History
探索相关项目
加载中…