This commit is contained in:
2025-09-01 16:44:00 +02:00
commit ce2eec9187
6 changed files with 45 additions and 0 deletions

7
all.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
./init.sh
./setup_git.sh
./install_lazygit.sh
./install_yazi.sh
./install_nvim.sh
echo "All done. Restart the shell."

9
init.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p ~/programs/bin
echo 'export PATH="$PATH:$HOME/programs/bin/"' >> ~/.bashrc
cat >> ~/.profile << 'EOF'
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
EOF

5
install_lazygit.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
cd ~/programs
wget https://github.com/jesseduffield/lazygit/releases/download/v0.54.2/lazygit_0.54.2_linux_x86_64.tar.gz
tar xf lazygit_0.54.2_linux_x86_64.tar.gz
ln -sf ~/programs/lazygit ~/programs/bin/lazygit

12
install_nvim.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
cd ~/programs
wget https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
tar xf nvim-linux-x86_64.tar.gz
ln -sf ~/programs/nvim-linux-x86_64/bin/nvim ~/programs/bin
echo 'export EDITOR="nvim"' >> ~/.bashrc
echo 'alias nvim="$HOME/programs/bin/nvim"' >> ~/.bashrc
if [ -d "$HOME/.config/nvim" ]; then
echo "Neovim configuration already exists."
else
git clone https://github.com/ascyii/nvim ~/.config/nvim
fi

6
install_yazi.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
cd ~/programs
wget https://github.com/sxyazi/yazi/releases/download/v25.5.31/yazi-x86_64-unknown-linux-gnu.zip
unzip yazi-x86_64-unknown-linux-gnu.zip
ln -sf ~/programs/yazi-x86_64-unknown-linux-gnu/yazi ~/programs/bin/yazi
ln -sf ~/programs/yazi-x86_64-unknown-linux-gnu/ya ~/programs/bin/ya

6
setup_git.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p ~/.ssh
echo "Get the github key and enter it." && sleep 2
nvim ~/.ssh/id_github && chmod 600 ~/.ssh/id_github
echo "alias sg=\"GIT_SSH_COMMAND='ssh -i ~/.ssh/id_github' git clone git@github.com:ascyii/dotfiles.git\"" >> ~/.bashrc
git config --global user.name "Jonas Hahn" && git config --global user.email "jonashahn1@gmx.net"