Update README

This commit is contained in:
Ben Kreeger 2025-06-19 14:08:24 -05:00
parent 278c6126f1
commit cec30766ac
Signed by: kreeger
GPG Key ID: 1F33DAF2F49E4046
3 changed files with 19 additions and 27 deletions

View File

@ -2,14 +2,22 @@
My dotfiles. Also works with the following repos: My dotfiles. Also works with the following repos:
- [kreeger/nvimrc](https://git.kree.gr/kreeger/nvimrc) To use, clone this repo (and its submodules!) to `$XDG_CONFIG_HOME/dotfiles` (on
- [kreeger/zshrc](https://git.kree.gr/kreeger/zshrc) my macOS machine, I have this set to `~/.config` instead of
- [kreeger/tmuxrc](https://git.kree.gr/kreeger/tmuxrc) `~/Library/Application Support`).
To use, clone this repo to `$HOME/.config/dotfiles` and run `setup.sh`. This ```bash
makes sure those three repos are cloned to their `$HOME/.config`-equivalent $ git clone --recurse-submodules \
homes, that the `zshrc` file is symlinked to my home directory, and that any https://git.kree.gr/kreeger/dotfiles \
other dotfiles in this repo also get symlinked to home. $XDG_CONFIG_HOME/dotfiles
$ $XDG_CONFIG_HOME/dotfiles/setup.sh
```
This will make sure my `zsh` config is symlinked to the right place, and then
everything else will be symlinked to `$XDG_CONFIG_HOME` to conform to the [XDG
base directory specification][xdg].
My `zshrc` files also include a function (`update_dotfiles`) to do a `git pull` My `zshrc` files also include a function (`update_dotfiles`) to do a `git pull`
on each of these repos to help me keep things up-to-date. on this repo to keep things up-to-date.
[xdg]: https://specifications.freedesktop.org/basedir-spec/latest/

0
lazygit/config.yml Normal file
View File

View File

@ -68,26 +68,10 @@ function devcshell() {
# Dotfile update command(s) # Dotfile update command(s)
function update_dotfiles() { function update_dotfiles() {
# Update zsh echo "Fetching latest dotfiles."
echo "Fetching latest ZSH." cd $XDG_CONFIG_HOME/dotfiles
cd $HOME/.config/zsh
git pull origin main > /dev/null 2>&1
# Update NeoVim
echo "Fetching latest NeoVim."
cd $HOME/.config/nvim
git pull origin main > /dev/null 2>&1 git pull origin main > /dev/null 2>&1
sh $XDG_CONFIG_HOME/dotfiles/setup.sh > /dev/null 2>&1
nvim --headless "+Lazy! install" +qa > /dev/null 2>&1 nvim --headless "+Lazy! install" +qa > /dev/null 2>&1
nvim --headless "+Lazy! clean" +qa > /dev/null 2>&1 nvim --headless "+Lazy! clean" +qa > /dev/null 2>&1
# Update tmux
echo "Fetching latest tmux."
cd $HOME/.config/tmux
git pull origin main > /dev/null 2>&1
# Update my dotfiles
echo "Fetching latest dotfiles."
cd $HOME/.config/dotfiles
git pull origin main > /dev/null 2>&1
sh $HOME/.config/dotfiles/setup.sh > /dev/null 2>&1
} }