Install aliae
for bash
in every OS
This commit is contained in:
parent
d3221717bc
commit
4f71049e2f
2 changed files with 13 additions and 13 deletions
|
@ -17,4 +17,17 @@ then
|
||||||
pwsh "./install.ps1";
|
pwsh "./install.ps1";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
contextRoot="$(mktemp -d)";
|
||||||
|
pushd "$contextRoot" > /dev/null;
|
||||||
|
|
||||||
|
{
|
||||||
|
dump_bash;
|
||||||
|
echo 'eval "$(aliae completion bash)"';
|
||||||
|
} > "aliae.sh";
|
||||||
|
|
||||||
|
sudo install -Dm755 aliae.sh /etc/bash/conf.d/aliae.sh
|
||||||
|
|
||||||
|
popd > /dev/null;
|
||||||
|
rm -rf "$contextRoot";
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
|
@ -25,17 +25,4 @@ function dump_bash() {
|
||||||
echo "aliae completion fish | source";
|
echo "aliae completion fish | source";
|
||||||
} | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
|
} | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
|
||||||
|
|
||||||
contextRoot="$(mktemp -d)";
|
|
||||||
pushd "$contextRoot" > /dev/null;
|
|
||||||
|
|
||||||
{
|
|
||||||
dump_bash;
|
|
||||||
echo 'eval "$(aliae completion bash)"';
|
|
||||||
} > "aliae.sh";
|
|
||||||
|
|
||||||
sudo install -Dm755 aliae.sh /etc/bash/conf.d/aliae.sh
|
|
||||||
|
|
||||||
popd > /dev/null;
|
|
||||||
rm -rf "$contextRoot";
|
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
Loading…
Reference in a new issue