From 67d32ce7c6f57d74e8f9d526d178a346f3976820 Mon Sep 17 00:00:00 2001 From: josuezamudio Date: Sun, 3 Nov 2024 21:27:44 -0800 Subject: [PATCH] add simple install script and update readme --- README.md | 2 +- install.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 install.sh diff --git a/README.md b/README.md index 9a2226e..2c4fe1a 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ Josue's dotfiles Uses GNU Stow to manage simlink. Place files as they where in $HOME # Usage -Place dotfiles in $HOME ```console clone into $HOME cd dotfiles stow . ``` +If stow is not installed use ./install.sh from .dotfiles repo diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..d586d3b --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +#/bin/bash + +export XDG_CONFIG_HOME=$HOME/.config +HERE=$(pwd)/.config + +# creates sim links for all files into .config +for file in ./.config/*; do + file=$(basename $file) # get file name + ln -s $HERE/$file $XDG_CONFIG_HOME/$file +done + +