add simple install script and update readme
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
12
install.sh
Executable file
12
install.sh
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user