aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-01-17 09:56:28 -0500
committerEugene Triguba <hello@eugenetriguba.com>2026-01-17 09:57:17 -0500
commit3dd8f0a80c28353b489a22f4a5f551707f501426 (patch)
tree5b39fc785419c0575b4e627ad8ff1f8a9f904086
parentFix stow command in readme (diff)
downloaddotfiles-3dd8f0a80c28353b489a22f4a5f551707f501426.zip
Add link script
-rw-r--r--.stow-local-ignore1
-rw-r--r--README.md2
-rwxr-xr-xlink.sh4
3 files changed, 6 insertions, 1 deletions
diff --git a/.stow-local-ignore b/.stow-local-ignore
index 4709121..6747cd8 100644
--- a/.stow-local-ignore
+++ b/.stow-local-ignore
@@ -4,3 +4,4 @@ LICENSE
README.md
docs
tags
+link.sh
diff --git a/README.md b/README.md
index abd5a53..edbaf1e 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ To install only the dotfiles:
```sh
git clone git@github.com:eugenetriguba/dotfiles.git ~/.dotfiles
cd .dotfiles
-stow --dir ~ --target ~ .dotfiles
+./link.sh
```
### System Setup
diff --git a/link.sh b/link.sh
new file mode 100755
index 0000000..ed9e124
--- /dev/null
+++ b/link.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+(cd "$HOME/.dotfiles" && stow --target "$HOME" .)