2024-03-20 15:00:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
2024-03-20 20:15:50 +00:00
|
|
|
. "../bash/profile.sh";
|
2024-03-20 15:00:44 +00:00
|
|
|
|
|
|
|
if ! grep "\baliae\b" ~/.bashrc > /dev/null
|
|
|
|
then
|
|
|
|
{
|
|
|
|
echo '# aliae';
|
|
|
|
echo 'eval "$(aliae init bash)"';
|
|
|
|
echo "";
|
|
|
|
} >> ~/.bashrc;
|
|
|
|
fi;
|
|
|
|
|
2024-03-20 16:03:14 +00:00
|
|
|
profileFile="$(pwsh -c '$PROFILE')";
|
2024-03-20 15:00:44 +00:00
|
|
|
|
2024-03-20 16:03:14 +00:00
|
|
|
if [ ! -f "$profileFile" ] || ! grep "\baliae\b" "$profileFile" > /dev/null
|
|
|
|
then
|
|
|
|
pwsh "./install.ps1";
|
2024-03-20 15:00:44 +00:00
|
|
|
fi;
|
|
|
|
|
2024-03-20 19:43:03 +00:00
|
|
|
{
|
|
|
|
echo 'eval "$(aliae completion bash)"';
|
2024-04-04 14:52:29 +00:00
|
|
|
} | addBashProfile "aliae";
|
2024-03-20 19:43:03 +00:00
|
|
|
|
|
|
|
popd > /dev/null;
|