From d4986f436ced0b1813b2047f6a9cab5690de631c Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 7 Feb 2022 18:36:28 +0000 Subject: [PATCH] Added return cd command to pulldots --- .bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index c50b7d2..2b19d41 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -148,11 +148,11 @@ 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 - echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && echo "" + echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && cd %% echo "" elif [ "$(grep -c -i ""main"" ~/git/dotfiles/.git/config )" -gt 0 ]; then - echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && echo "" + echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd && echo "" else echo "I can't seem to file any dotfiles folders" && echo ""