Fix creation of aliae bash profile

This commit is contained in:
Manuel Thalmann 2024-03-20 19:50:48 +01:00
parent 53ed5bb8c0
commit fc58cd38d9

View file

@ -25,9 +25,17 @@ function dump_bash() {
echo "aliae completion fish | source";
} | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
{
dump_bash;
echo 'eval "$(aliae completion bash)"';
} | sudo tee /etc/bash/conf.d/aliae.sh
} > "aliae.sh";
sudo install -Dm755 aliae.sh /etc/bash/conf.d/aliae.sh
popd > /dev/null;
rm -rf "$contextRoot";
popd > /dev/null;