inital commit
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user