add script for installing dotfiles
This commit is contained in:
parent
5b12c2e452
commit
90f4743a0a
1 changed files with 11 additions and 0 deletions
11
installdots.sh
Executable file
11
installdots.sh
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue