Add post install for setting up non trivial applications
This commit is contained in:
parent
79f3ba513f
commit
59a1d3bb83
33
dot_config/eget/executable_post_install.sh
Normal file
33
dot_config/eget/executable_post_install.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user