Ajout script d'install WIP

main
Gil 2023-07-21 23:40:14 +02:00
parent ae6505b6d8
commit bb580e7005
1 changed files with 13 additions and 1 deletions

View File

@ -1,10 +1,22 @@
#/bin/bash #/bin/bash
# check sudoer for install
groups | grep -q sudo || echo "Please add $(whoami) to sudo group with : sudo usermod -aG sudo $(whoami), then reboot and relaunch this script"
groups | grep -q sudo || return
# sudo usermod -aG sudo $user # pour passer sudoers, puis reboot
sudo apt install -y neomutt curl isync msmtp pass lynx notmuch abook urlview
touch temp && echo "*/10 * * * * $HOME/.local/bin/mailsync" > temp && crontab temp && rm temp
# Installation oh my 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" [ ! -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 # Installation config specif bash + aliases
grep "gil_specific" "$HOME/.bashrc" || sed -i -e '$asource "$HOME"/.config/bash/gil_specific.sh\' $HOME/.bashrc grep -q "gil_specific" "$HOME/.bashrc" && echo "Bash configured" || sed -i -e '$asource "$HOME"/.config/bash/gil_specific.sh\' $HOME/.bashrc
# Installation sdkman # Installation sdkman
[ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash [ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash