diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 8258f4f..c02ca2a 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,4 +1,4 @@ -set -g DOTFILES_VERSION "1.1.9" +set -g DOTFILES_VERSION "1.1.10" function gitme if test (count $argv) -lt 2 diff --git a/README.md b/README.md index 0a92b94..c9425ba 100644 --- a/README.md +++ b/README.md @@ -46,19 +46,17 @@ dotfiles publish # Bump version, commit, push ``` ~/.config/fish/ -├── config.fish Main entry point — version, PATH, interactive setup +├── config.fish Version, git identity helper ├── install.fish Bootstrap/install script (also at repo root) ├── README.md This file ├── conf.d/ -│ └── aliases.fish Example: Git abbreviations, helper functions +│ └── aliases.fish Git abbreviations, directory helpers ├── functions/ │ ├── dotfiles.fish The `dotfiles` command and all subcommands -│ └── keyme.fish Helper: generate SSH key for Gitea +│ └── keyme.fish Generate SSH key for Gitea + set Git identity └── dotfiles/ ├── tmux.conf Template → ~/.tmux.conf - ├── gitconfig Template → ~/.gitconfig - └── config/ - └── starship.toml Template → ~/.config/starship.toml + └── gitconfig Template → ~/.gitconfig ``` ## How It Works @@ -74,9 +72,9 @@ new version (auto-suggested minor bump, or custom), and both the local Each file in `~/.config/fish/dotfiles/` is a template. When you run `dotfiles init`, templates are copied to `~/` with a leading dot prepended -(e.g. `tmux.conf` → `~/.tmux.conf`). Templates in subdirectories are -placed under `~/` preserving the path (e.g. `config/starship.toml` → -`~/.config/starship.toml`). +(e.g. `tmux.conf` → `~/.tmux.conf`). Templates containing a `/` in their +name are placed under `~/` preserving the relative path (e.g. +`vim/vimrc` → `~/.vim/vimrc`). To add a new dotfile, simply drop a template file into `dotfiles/` and run `dotfiles init `. No registration needed.