This commit is contained in:
deathbybandaid 2022-03-08 09:19:39 -05:00
parent d438c74242
commit 83f9ed3af1
2 changed files with 16 additions and 1 deletions

View File

@ -4,6 +4,8 @@ echo "Checking Custom Bash Aliases"
## Script Location
# SCRIPTDIR=$(dirname $0)
BASHRCFILE="$HOME/.bashrc"
custom_bash_aliases_path="/etc/bash_aliases"
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases.git"
if [ ! -d "$custom_bash_aliases_path" ]; then
@ -13,4 +15,16 @@ else
echo "* Updating Bash Aliases"
git -C $custom_bash_aliases_path pull
fi
source $HOME/.bashrc
if [[ $(grep -L "$custom_bash_aliases_path" $BASHRCFILE) ]]; then
cat <<EOT >> $BASHRCFILE
# Aliases
if [ -f $custom_bash_aliases_path/main.aliases ]; then
. $custom_bash_aliases_path/main.aliases
fi
EOT
fi
echo "* Importing Bash Aliases"
source $BASHRCFILE

1
dependencies/grep.dep vendored Normal file
View File

@ -0,0 +1 @@
grep