add init-dotfiles for easier setup

This commit is contained in:
Philipp 2024-08-09 03:11:33 +02:00
parent d105417d06
commit 5fabdedefc
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 11 additions and 0 deletions

View file

@ -11,6 +11,10 @@ You will need atleast following packages for it to work
### Getting started
If you wanna use my zsh config, you have to properly prepare the ZDOTDIR enviornment, for this use the *init-dotfiles* provided. **CAUTION: This does need root!**
`sudo ./init-dotfiles`
For stow to restore the old state you have to run following command.
`git clone https://git.snrd.eu/Spaenny/dotfiles.git && cd dotfiles`

7
init-dotfiles Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Setup .zshrc folder in .config for zsh to work
echo 'ZDOTDIR=$XDG_CONFIG_HOME/zsh/' >> /etc/zsh/zshenv
# Create folder for history
mkdir -p $(dirname "$HISTFILE")