initial commit

This commit is contained in:
2025-05-18 19:20:34 +02:00
commit 1a731404e9
5 changed files with 41 additions and 0 deletions

3
.bash_aliases Normal file
View File

@ -0,0 +1,3 @@
alias ll='ls -la'
alias gs='git status'
alias update='sudo apt update && sudo apt upgrade -y'

6
.bashrc Normal file
View File

@ -0,0 +1,6 @@
# ~/.bashrc
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export EDITOR=nano

8
README.md Normal file
View File

@ -0,0 +1,8 @@
## Installation
```bash
git clone git@github.com:deinuser/dotfiles.git ~/dotfiles
cd ~/dotfiles
bash install-links.sh
bash install-tools.sh
```

10
install-links.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Symlink dotfiles to home directory
DOTFILES_DIR=$(pwd)
ln -sf $DOTFILES_DIR/.bashrc ~/.bashrc
ln -sf $DOTFILES_DIR/.bash_aliases ~/.bash_aliases
ln -sf $DOTFILES_DIR/.gitconfig ~/.gitconfig
echo "Symlinks gesetzt."

14
install-tools.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Install standard tools
echo "Tools werden installiert..."
if command -v apt &>/dev/null; then
sudo apt update
sudo apt install -y nano mc htop curl git ack btop
else
echo "Unsupported package manager"
exit 1
fi
echo "Tools fertig installiert."