Files
minimal/git/config.zsh
T
2026-03-23 23:50:58 +00:00

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