aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index a5e7876..ad31989 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -58,10 +58,11 @@ function link {
function link_contents {
local src="$1"
local dest="$2"
+ local prefix="${3:-}"
if [ -e "$src" ]; then
for f in "$src"/*
do
- link "$(pwd)/$f" "$dest/$(basename "$f")"
+ link "$(pwd)/$f" "$dest/$prefix$(basename "$f")"
done
fi
}
@@ -74,7 +75,7 @@ function deploy {
}
# deploy to home
-link_contents home "$HOME"
+link_contents home "$HOME" '.'
# deploy to XDG dirs
deploy config "$xconfig"