From 4ead610d99b642ffc8423fc396cb9294222c0178 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 17 Jun 2024 18:56:54 +0300 Subject: Added README.md file with instructions on how to install & use this repository --- README.md | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a7ed3b0 --- /dev/null +++ b/README.md @@ -0,0 +1,82 @@ + +## 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 + +- - 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 + +### Add + +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 + +### Delete + +Remove a file from GNU Stow and the filesystem + +```zsh +$ rm ~/// +$ rm ~// +``` + +Remove a file only from GNU Stow, but keep it in the filesystem + +```zsh +$ rm ~// +$ mv ~/// ~// +$ cd ~/ && stow . +``` + +### Commit changes to the GitHub repository (optional) + +```zsh +$ cd ~/ +$ git add . +$ git commit -m "Your message here" +$ git push origin master +``` + +### Pull Changes from the GitHub repository + +```zsh +$ cd ~/ +$ git pull origin master +$ stow -- adopt . +``` + + + + -- cgit v1.3.1