add simple install script and update readme

This commit is contained in:
2024-11-03 21:27:44 -08:00
parent e2c24dbcb8
commit 67d32ce7c6
2 changed files with 13 additions and 1 deletions

View File

@@ -3,11 +3,11 @@ Josue's dotfiles
Uses GNU Stow to manage simlink. Place files as they where in $HOME Uses GNU Stow to manage simlink. Place files as they where in $HOME
# Usage # Usage
Place dotfiles in $HOME
```console ```console
clone into $HOME clone into $HOME
cd dotfiles cd dotfiles
stow . stow .
``` ```
If stow is not installed use ./install.sh from .dotfiles repo

12
install.sh Executable file
View File

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