From ae58186d45701e63f868608ca5be5e9b365ebdf0 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 14 Dec 2023 09:13:02 -0500 Subject: [PATCH] fix spelling mistake, update docs --- README.md | 25 +++++++++++++++++++++++-- install.sh | 11 +++++++---- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cb46c4c..2ca366c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # My dotfiles +A collection of my config files (also known as dotfiles). + I am using [GNU Stow](https://www.gnu.org/software/stow/) to symlink my dotfiles to their correct locations in my `$HOME` directory. ## Cloning this repo ```bash -git clone https://github.com/lemonase/dotfiles.git && cd dotfiles/config +git clone https://github.com/lemonase/dotfiles.git ``` ## Installing `stow` on Linux and macOS @@ -25,6 +27,26 @@ pacman -S stow brew install stow ``` +## Using `install.sh` script + +```bash +$ ./install.sh --help +dotfile symlink install script: +options: + +install, i: + install dotfile symlinks to $HOME directory + +uninstall, u, delete, d, remove, r: + uninstall dotfile symlinks to $HOME directory + +repair, r: + repair old dotfile symlinks + +list, l: + list symlinks files in home directory +``` + ## Using `stow` ```bash @@ -57,4 +79,3 @@ WARNING! stowing git would cause conflicts: Delete or move file in question ---- diff --git a/install.sh b/install.sh index 361ec1a..136b40a 100755 --- a/install.sh +++ b/install.sh @@ -6,17 +6,20 @@ CONFIG_DIR="$(dirname "$0")/config" cd $CONFIG_DIR if [[ "$1" == "help" || "$1" == "--help" || "$1" == "-h" ]]; then - echo "dofiles install script with stow:" + echo "dotfile symlink install script:" echo "options:" echo "" echo "install, i:" - echo " install dotfiles" + echo " install dotfile symlinks to $HOME directory" echo "" echo "uninstall, u, delete, d, remove, r:" - echo " uninstall dotfiles" + echo " uninstall dotfile symlinks to $HOME directory" echo "" echo "repair, r:" - echo " repair dotfile symlinks" + echo " repair old dotfile symlinks" + echo "" + echo "list, l:" + echo " list symlinks files in home directory" exit fi