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

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")