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 + +