From 4f71049e2ffd635568e4c14840d0ee93a063867d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 20 Mar 2024 20:43:03 +0100 Subject: [PATCH] Install `aliae` for `bash` in every OS --- scripts/Common/Config/aliae/install.sh | 13 +++++++++++++ scripts/Unix/Config/aliae/install.sh | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/Common/Config/aliae/install.sh b/scripts/Common/Config/aliae/install.sh index 13328dab..cd43b2dd 100755 --- a/scripts/Common/Config/aliae/install.sh +++ b/scripts/Common/Config/aliae/install.sh @@ -17,4 +17,17 @@ then pwsh "./install.ps1"; 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; diff --git a/scripts/Unix/Config/aliae/install.sh b/scripts/Unix/Config/aliae/install.sh index a727975e..e2128af0 100755 --- a/scripts/Unix/Config/aliae/install.sh +++ b/scripts/Unix/Config/aliae/install.sh @@ -25,17 +25,4 @@ 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)"'; -} > "aliae.sh"; - -sudo install -Dm755 aliae.sh /etc/bash/conf.d/aliae.sh - -popd > /dev/null; -rm -rf "$contextRoot"; - popd > /dev/null;