ajout init pass, pas testé...
parent
506960988d
commit
af3292208b
|
|
@ -1,7 +1,9 @@
|
|||
#/bin/bash
|
||||
|
||||
[ ! -f "$HOME/.ssh/id_ed25519 ] && echo "Please import ssh keys before going further"
|
||||
|
||||
# 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 || echo "Please, as root, 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
|
||||
|
|
@ -12,6 +14,9 @@ sudo apt install -y sxhkd wmctrl yadm openjdk-17-jdk xclip maven vim-gtk3 vim vi
|
|||
pulseaudio-utils slock bash-completion kubectx imagemagick pdfarranger
|
||||
sudo apt autoremove
|
||||
|
||||
# récupération yadm si necessaire
|
||||
[ ! -f "$HOME/.local/bin/passmenu2" ] && yadm init && yadm remote add origin git@git.portenseigne.ovh:pgil/dotfiles.git && yadm fetch --all && yadm checkout main
|
||||
|
||||
[ ! -f "$HOME/.local/bin/fd" ] && ln -s $(which fdfind) ~/.local/bin/fd
|
||||
[ ! -f "$HOME/.local/bin/nvim.appimage" ] && wget --output-document $HOME/.local/bin/nvim.appimage https://github.com/neovim/neovim/releases/download/stable/nvim.appimage && chmod +x $HOME/.local/bin/nvim.appimage
|
||||
|
||||
|
|
@ -46,6 +51,9 @@ git config --global user.name "Gil Portenseigne"
|
|||
# gestion de plugin tmux
|
||||
[ ! -d "$HOME/.config/tmux/plugins/tpm/" ] && git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||
|
||||
# activation systemd sxhkd
|
||||
systemctl --user daemon-reload && systemctl --user enable sxhkd
|
||||
|
||||
echo "Maintenant à installer : Idea-Eclipse,
|
||||
Nexcloud sync, parsec"
|
||||
echo "https://github.com/nordtheme/gnome-terminal"
|
||||
|
|
|
|||
Loading…
Reference in New Issue