Fix creation of aliae
bash profile
This commit is contained in:
parent
53ed5bb8c0
commit
fc58cd38d9
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue