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

21 lines
383 B
Bash
Executable file

#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
if ! grep "\baliae\b" ~/.bashrc > /dev/null
then
{
echo '# aliae';
echo 'eval "$(aliae init bash)"';
echo "";
} >> ~/.bashrc;
fi;
profileFile="$(pwsh -c '$PROFILE')";
if [ ! -f "$profileFile" ] || ! grep "\baliae\b" "$profileFile" > /dev/null
then
pwsh "./install.ps1";
fi;
popd > /dev/null;