37 lines
1.8 KiB
Bash
37 lines
1.8 KiB
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 webext-browserpass webext-ublock-origin-firefox vim vim-nox neomutt curl isync msmtp pass lynx notmuch abook urlview python3 ripgrep fonts-firacode fd-find tmux interception-caps2esc postgresql npm rsync nextcloud-desktop chromium tig
|
|
echo "*/10 * * * * $HOME/.local/bin/mailsync" > temp && crontab temp && rm temp
|
|
|
|
[ ! -f "$HOME/.local/bin/fd" ] && ln -s $(which fdfind) ~/.local/bin/fd
|
|
|
|
# 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 -q "gil_specific" "$HOME/.bashrc" && echo "Bash configured" || sed -i -e '$asource "$HOME/.config/bash/gil_specific.sh"\' $HOME/.bashrc
|
|
|
|
# Installation sdkman
|
|
[ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash
|
|
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Nordic"
|
|
gsettings set org.gnome.desktop.wm.preferences theme "Nordic"
|
|
|
|
gsettings set org.gnome.desktop.interface monospace-font-name 'Fira Code 11'
|
|
gsettings set org.gnome.desktop.interface document-font-name 'Fira Code 10'
|
|
gsettings set org.gnome.desktop.interface font-name 'Fira Code 10'
|
|
gsettings set org.gnome.desktop.wm.keybindings close "['<Super>q']"
|
|
gsettings set org.gnome.desktop.wm.keybindings toggle-maximized "['<Super>f']"
|
|
|
|
|
|
|
|
echo "Maintenant à installer : Joplin
|
|
https://cloud.portenseigne.ovh/remote.php/dav/files/pgil/Joplin, Idea,
|
|
Nexcloud sync, parsec"
|
|
echo "https://github.com/nordtheme/gnome-terminal"
|