12 lines
275 B
Bash
Executable File
12 lines
275 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DOTFILES=$HOME/.dotfiles
|
|
|
|
echo "creating symlinks"
|
|
linkables=$( find -H "$DOTFILES" -maxdepth 3 -name '*.symlink' )
|
|
for file in $linkables ; do
|
|
target="$HOME/.$( basename $file ".symlink" )"
|
|
echo "creating symlink for $file"
|
|
ln -s $file $target
|
|
done
|