From dc18dc80d0a1e01197c0d8cb7e70e939c1125cbc Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 12:47:27 -0500 Subject: [PATCH] Create method of Importing other aliases files --- main.aliases | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.aliases b/main.aliases index bf189e5..ead06c3 100644 --- a/main.aliases +++ b/main.aliases @@ -11,3 +11,11 @@ alias alias-reload='source ~/.bashrc && echo "Reloaded ~/.bashrc"' # Run the alias Pull and Reload commands together alias alias-update='alias-pull && alias-reload' + +# Import alias files in this the cloned directory +for alias_file in "$bash_aliases"/*.aliases +do + if [ $alias_file != "$bash_aliases/main.aliases" ]; then + source $alias_file + fi +done