From 59aa5ff4d83d3fa981f285779d0c602e473bb101 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 12:15:58 -0500 Subject: [PATCH] Create Update Mechanism --- main.aliases | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.aliases b/main.aliases index ca746ee..adfba91 100644 --- a/main.aliases +++ b/main.aliases @@ -1,4 +1,13 @@ # The Contents of this file will be directly related to the functioning of the alias files +# Variable for the cloned directory for these aliases +bash_aliases="/etc/bash_aliases" + +# Pull aliases from git repo +alias alias-pull='git -C $bash_aliases pull && echo "Pulled $bash_aliases"' + # Reload bashrc which then sources this file alias alias-reload='source ~/.bashrc && echo "Reloaded ~/.bashrc"' + +# Run the alias Pull and Reload commands together +alias alias-update='alias-pull && alias-reload'