From 061819d25f72a7c80d2fa04bd20bf681ed594bfa Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 30 Dec 2024 13:38:37 +0200 Subject: Updated readme --- README.md | 87 +++++++++++++++------------------------------------------------ 1 file changed, 20 insertions(+), 67 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a7ed3b0..c5a4993 100644 --- a/README.md +++ b/README.md @@ -1,82 +1,35 @@ +# Dotfiles -## Installation - -To install GNU Stow, use your preferred package manager - -### OpenSUSE Tumbleweed - -```zsh -$ sudo zypper up -$ sudo zypper in stow -``` - -### Load (symlink) dotfiles - -- - refers to the name of the directory where the dotfiles git repo lives -Make sure that is a subdirectory of `$HOME` - -```zsh -$ cd ~/ && stow . -``` - -You may need to add the `--adopt` flag to stow to override existing configurations in `$HOME` -```zsh -$ cd ~/ && stow --adopt . -``` - -## Usage +My personal dotfiles for reproducing my entire machine. -- - refers to the name of the directory where the dotfiles git repo lives -- - The directory path where the file/s live -- - The file's name, this is the file you want to add/update/delete +Includes -### Add +- Operating System and packages (NixOS) +- Neovim config +- Ghostty Terminal config +- Tmux config +- Utility scripts -Add a new file to the dotfiles repo - -```zsh -$ mv ~// ~/// -$ cd ~/ && stow . -``` - -### Update - -As GNU Stow uses symlinks, you can simply edit it (in either ~// or ~///) and the changes will be present in both locations +## Installation -### Delete +Use your preferred package manager to install GNU stow -Remove a file from GNU Stow and the filesystem +Then clone the repository -```zsh -$ rm ~/// -$ rm ~// +```sh +$ git clone https://github.com/kyren223/dotfiles ``` -Remove a file only from GNU Stow, but keep it in the filesystem +Let stow generate all the symlinks for you -```zsh -$ rm ~// -$ mv ~/// ~// -$ cd ~/ && stow . +```sh +$ cd ~/dotfiles && stow . ``` -### Commit changes to the GitHub repository (optional) +You may need to add the `--adopt` flag to stow to override existing your existing dotfiles. -```zsh -$ cd ~/ -$ git add . -$ git commit -m "Your message here" -$ git push origin master -``` +If using NixOS, rebuild your system using the flake -### Pull Changes from the GitHub repository - -```zsh -$ cd ~/ -$ git pull origin master -$ stow -- adopt . +```sh +$ sudo nixos-rebuild switch --flake ~/dotfiles#laptop-nixos ``` - - - - -- cgit v1.3.1