test
This commit is contained in:
parent
d438c74242
commit
83f9ed3af1
@ -4,6 +4,8 @@ echo "Checking Custom Bash Aliases"
|
|||||||
## Script Location
|
## Script Location
|
||||||
# SCRIPTDIR=$(dirname $0)
|
# SCRIPTDIR=$(dirname $0)
|
||||||
|
|
||||||
|
BASHRCFILE="$HOME/.bashrc"
|
||||||
|
|
||||||
custom_bash_aliases_path="/etc/bash_aliases"
|
custom_bash_aliases_path="/etc/bash_aliases"
|
||||||
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases.git"
|
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases.git"
|
||||||
if [ ! -d "$custom_bash_aliases_path" ]; then
|
if [ ! -d "$custom_bash_aliases_path" ]; then
|
||||||
@ -13,4 +15,16 @@ else
|
|||||||
echo "* Updating Bash Aliases"
|
echo "* Updating Bash Aliases"
|
||||||
git -C $custom_bash_aliases_path pull
|
git -C $custom_bash_aliases_path pull
|
||||||
fi
|
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
1
dependencies/grep.dep
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
grep
|
||||||
Loading…
Reference in New Issue
Block a user