From 704d58b20e906a35edfef763ddbf67431c6c1604 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Sat, 8 Apr 2023 01:00:52 +0200 Subject: [PATCH] chore: Improve readability and installation process of config files. - Add installation of config files in `.config` directory - Improve readability of installation output with empty lines and section headers - Fix typos in installation script comments - Add comments to explain each section of the installation script --- install.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.zsh b/install.zsh index c93465b..ee94c8d 100755 --- a/install.zsh +++ b/install.zsh @@ -36,6 +36,13 @@ if [ -n "${NPM_CONFIG_PREFIX}" ]; then fi cp -v .tmux.conf ~/.tmux.conf +echo +echo "[*] installing config files" +install -m644 .zshrc -t "$HOME" +find config -type f | while read file; do + install $file $(echo $file | sed "s|config|$HOME/.config|") +done + echo echo "[*] installing executables" @@ -43,4 +50,5 @@ find bin -type f | while read -r file; do install $file $(echo $file | sed "s|bin|$HOME/.local/bin|") done + source $HOME/.zshrc