From 1fd34083d448b64d66c7a62d36a1b2d7b9bf6321 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 12 Nov 2022 21:13:02 +0000 Subject: [PATCH] Updated Dotfiles location --- .bash_aliases | 10 +++++----- README.md | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index c3667ae..1c23b8b 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -157,16 +157,16 @@ function pullall() { done } -# Pull Dotfiles inside ~/git/dotfiles +# Pull Dotfiles inside ~/.dotfiles/ function pulldots() { # Check if folders are there and if its Master or Main - if [ "$(grep -c -i ""master"" ~/git/dotfiles/.git/config )" -gt 0 ]; then - CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && cd $CURRENTDIR && echo "" + if [ "$(grep -c -i ""master" "~/.dotfiles/.git/config )" -gt 0 ]; then + CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling master branch..." && cd ~/.dotfiles/ && git checkout master && git pull && cd $CURRENTDIR && echo "" - elif [ "$(grep -c -i ""main"" ~/git/dotfiles/.git/config )" -gt 0 ]; then - CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd $CURRENTDIR && echo "" + elif [ "$(grep -c -i ""main" "~/.dotfiles/.git/config )" -gt 0 ]; then + CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling main branch..." && cd ~/.dotfiles/ && git checkout main && git pull && cd $CURRENTDIR && echo "" else echo "I can't seem to file any dotfiles folders" && echo "" diff --git a/README.md b/README.md index 39f038a..301cca0 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,29 @@ # Dotfiles -# Installation -### Download and change folder +## Installation +#### Download and change folder ``` cd ~ -git clone https://github.com/ncltech/dotfiles.git +git clone https://git.ncltech.co.uk/phil/dotfiles.git .dotfiles -cd dotfiles ``` -### Run install +#### Run install ``` +cd ~/.dotfiles/ ./install.sh ``` -# Uninstallation +## Uninstallation -### Change to dotfiles folder +#### Change to dotfiles folder ``` -cd ~/dotfiles +cd ~/.dotfiles ``` -### Run uninstaller +#### Run uninstaller ``` +cd ~/.dotfiles/ ./uninstall.sh