From 90f4743a0ae7fb3757490a24760dc635abc6e951 Mon Sep 17 00:00:00 2001 From: Sencyy Date: Sat, 10 Aug 2024 11:10:22 -0300 Subject: [PATCH] add script for installing dotfiles --- installdots.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 installdots.sh diff --git a/installdots.sh b/installdots.sh new file mode 100755 index 0000000..717bda5 --- /dev/null +++ b/installdots.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +find -mindepth 1 -maxdepth 1 -type d | while read dir; do + fmtdir="$(sed -e s/\\.\\///g <<<$dir)" + if [ $(echo $fmtdir) != ".git" ]; then + stow -t "$HOME" "$fmtdir" + echo "installed $fmtdir configuration" + else + echo "ommiting $fmtdir directory" + fi +done