13 lines
292 B
Bash
Executable File
13 lines
292 B
Bash
Executable File
create_dot_symlink () {
|
|
_file="${HOME}/.${${1:t}%.*}"
|
|
if ! test -L "$_file"; then
|
|
if [[ -r "$_file" ]]; then
|
|
mv "$_file" "${_file}.symlink-replacement"
|
|
fi
|
|
ln -s $1 $_file
|
|
fi
|
|
}
|
|
for _item in ${DOTFILES}/git/*.symlink; do
|
|
create_dot_symlink $_item
|
|
done
|