PortValhalla/scripts/Common/Config/aliae/install.sh

26 lines
482 B
Bash
Raw Normal View History

2024-03-20 15:00:44 +00:00
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../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;
profileFile="$(pwsh -c '$PROFILE')";
2024-03-20 15:00:44 +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;