install.sh aktualisiert

This commit is contained in:
klaas 2025-03-26 21:04:09 +01:00
parent bd20891b51
commit 556bb6872f
1 changed files with 26 additions and 9 deletions

View File

@ -1,22 +1,35 @@
#!/usr/bin/env bash
set -x
DEBUG=true # oder false
if [ "$DEBUG" = true ]; then
set -x
fi
pause_if_debug() {
if [ "$DEBUG" = true ]; then
read -rp "🔍 DEBUG: Drücke [Enter] um fortzufahren..."
fi
}
# install essentials
echo "📦 Installiere Pakete..."
sudo apt install nala -y
sudo nala install ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
pause_if_debug
clear
echo "Lade Daten"
git clone https://git.boergmann.it/klaas/shellskripte
cd shellskripte
cp ./configs/zshrc ~/.zshrc
# ssh Keys für alle Maschinen
cp ./ssh/authorized_keys ~/.ssh/authorized_keys
# ssh Password Authenitcatoon no
sudo sh ./ssh/ssh_password -n
pause_if_debug
clear
# install neovim
echo "Installiere Neovim"
cd ~
git clone https://github.com/neovim/neovim
cd neovim
@ -29,15 +42,19 @@ rm -Rf neovim
# config file for nvim
mkdir ~/.config/nvim
cp ~/shellskripte/configs/init.vim ~/.config/nvim/init.vim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
nvim --headless +PlugInstall +qa
# Language support for python and C
nvim --headless -c 'CocInstall -sync coc-python' -c 'qall'
nvim --headless -c 'CocInstall -sync coc-clang' -c 'qall'
pause_if_debug
clear
# Install NodeJS
echo "Installiere nodeJS"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
sh ~/.nvm/nvm.sh
nvm install v20
# usefull packages für nodeJS