From 05b6de6494772cd643c0bd235b966e0e96df5070 Mon Sep 17 00:00:00 2001 From: Marissa Staib Date: Wed, 25 Sep 2019 16:38:55 -0400 Subject: [PATCH] Add scriptupdate alias to update common configs --- .bash_aliases | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index f62d748..4bf0e3d 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -43,6 +43,15 @@ function bashreload() source "$HOME"/.bashrc } +function scriptupdate() +{ + ( + cd "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )" + git pull + ) + bashreload +} + function man () { command man "$@" 2>/dev/null || builtin help -m "$@" 2>/dev/null || command man "$@"