anpassungen von Sudo und klonen statt einzeldownloads

This commit is contained in:
klaas 2025-03-26 20:22:49 +01:00
parent ccaf7e70d8
commit 887f601d9f
1 changed files with 8 additions and 11 deletions

View File

@ -1,7 +1,5 @@
#!/usr/bin/env bash
USER_NAME=${SUDO_USER:-$USER}
USER_HOME=$(eval echo "~$USER_NAME")
set -x
# install essentials
sudo apt install nala -y
@ -10,28 +8,27 @@ sudo nala install ninja-build gettext libtool-bin cmake g++ pkg-config unzip cur
git clone https://git.boergmann.it/klaas/shellskripte
cd shellskripte
cp ./configs/zshrc $USER_HOME/home/klaas/.zshrc
cp ./configs/zshrc ~/home/klaas/.zshrc
# ssh Keys für alle Maschinen
cp ./ssh/public_keys $USER_HOME/.ssh/authorized_keys
cp ./ssh/public_keys ~/.ssh/authorized_keys
# ssh Password Authenitcatoon no
./ssh/ssh_password -n
sudo ./ssh/ssh_password -n
cd ..
# install neovim
cd ..
cd ~
git clone https://github.com/neovim/neovim
cd neovim
git checkout stable
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
cd ..
cd ~
rm -Rf neovim
# config file for nvim
mkdir ~/.config/nvim
wget https://git.boergmann.it/klaas/shellskripte/raw/branch/main/configs/init.vim -O $USER_HOME/.config/nvim/init.vim
cp ~/shellskripte/configs/init.vim $USER_HOME/.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'
nvim --headless +PlugInstall +qa
# Language support for python and C
@ -56,4 +53,4 @@ yarn build
rm -Rf $USER_HOME/shellskripte
# zsh nutzen
usermod -s /bin/zsh $USER_NAME
sudo usermod -s /bin/zsh $USER_NAME