Create method of Importing other aliases files
This commit is contained in:
parent
b5db206692
commit
dc18dc80d0
@ -11,3 +11,11 @@ alias alias-reload='source ~/.bashrc && echo "Reloaded ~/.bashrc"'
|
|||||||
|
|
||||||
# Run the alias Pull and Reload commands together
|
# Run the alias Pull and Reload commands together
|
||||||
alias alias-update='alias-pull && alias-reload'
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user