diff options
-rwxr-xr-x | cleanup.sh | 5 | ||||
-rwxr-xr-x | dots.sh | 12 | ||||
-rwxr-xr-x | init.sh | 5 |
3 files changed, 12 insertions, 10 deletions
diff --git a/cleanup.sh b/cleanup.sh deleted file mode 100755 index 4b208c1..0000000 --- a/cleanup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -find . -type d -mindepth 1 -maxdepth 1 -not -path '*/.*' \ - | sed "s/^\.\///" \ - | while read dir; do stow -D "$dir"; done @@ -0,0 +1,12 @@ +#!/bin/sh + +# usage: ./dots.sh [update|clean]? + +OP="${1:-'update'}" + +STOW_OP="--no-folding" +if [ "$OP" = "clean" ]; then STOW_OP="-D"; fi + +find . -type d -mindepth 1 -maxdepth 1 -not -path '*/.*' \ + | sed "s/^\.\///" \ + | while read dir; do stow "$STOW_OP" "$dir"; done diff --git a/init.sh b/init.sh deleted file mode 100755 index e6856de..0000000 --- a/init.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -find . -type d -mindepth 1 -maxdepth 1 -not -path '*/.*' \ - | sed "s/^\.\///" \ - | while read dir; do stow --no-folding "$dir"; done |