diff --git a/README.md b/README.md index ad06f4b..b3b8174 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/init-dotfiles b/init-dotfiles new file mode 100755 index 0000000..e075040 --- /dev/null +++ b/init-dotfiles @@ -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")