initial commit
This commit is contained in:
3
.bash_aliases
Normal file
3
.bash_aliases
Normal 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
6
.bashrc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# ~/.bashrc
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
|
||||||
|
export EDITOR=nano
|
||||||
8
README.md
Normal file
8
README.md
Normal 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
10
install-links.sh
Normal 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
14
install-tools.sh
Normal 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."
|
||||||
Reference in New Issue
Block a user