From 59a1d3bb8332b374dacc91b08e577c955c5a81c5 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 26 Mar 2025 13:00:58 -0300 Subject: [PATCH] Add post install for setting up non trivial applications --- dot_config/eget/executable_post_install.sh | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dot_config/eget/executable_post_install.sh diff --git a/dot_config/eget/executable_post_install.sh b/dot_config/eget/executable_post_install.sh new file mode 100644 index 0000000..0e899b3 --- /dev/null +++ b/dot_config/eget/executable_post_install.sh @@ -0,0 +1,33 @@ +# Non github dependancies +if ! hash poetry 2>/dev/null;then + pipx install poetry +fi + +if ! hash rustup 2>/dev/null;then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +fi + +# Temporarily change directory +pushd $HOME/.local/bin > /dev/null + +# Extract what eget could not + +# Handle 7z +if compgen -G "7z*tar*" > /dev/null; then + tar xf 7z*tar* 7zzs + mv -f 7zzs 7z + rm -r 7z*tar* +fi + +# Handle bash_completion +if compgen -G "bash-completion*tar*" > /dev/null; then + tar xf bash-completion*tar* + mv -f bash-completion*/bash_completion . + mv -f bash-completion*/bash_completion.d . + mv -f bash-completion*/completions . + rm -r bash-completion-* + chmod +x bash_completion +fi + +# Unchange directory +popd > /dev/null \ No newline at end of file