From acda3ce6e7a56cae747651eaef594e0fe95a521a Mon Sep 17 00:00:00 2001 From: Gil Date: Fri, 21 Jul 2023 22:23:06 +0200 Subject: [PATCH] Ajoute un script d'installation de l'environnement dotfiles --- .config/bash/gil_specific.sh | 0 installSystem.sh | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 .config/bash/gil_specific.sh create mode 100644 installSystem.sh diff --git a/.config/bash/gil_specific.sh b/.config/bash/gil_specific.sh new file mode 100644 index 0000000..e69de29 diff --git a/installSystem.sh b/installSystem.sh new file mode 100644 index 0000000..e057c4e --- /dev/null +++ b/installSystem.sh @@ -0,0 +1,10 @@ +#/bin/bash + +# Installation oh my bash +[ ! -d "$HOME/.oh-my-bash/" ] && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" || echo "oh-my-bash installed" + +# Installation config specif bash + aliases +grep "gil_specific" "$HOME/.bashrc" || sed -i -e '$asource "$HOME"/.config/bash/gil_specific.sh\' $HOME/.bashrc + +# Installation sdkman +[ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash