2 # Symbolically link files to those under linkable_etc_files/$1/, e.g.
3 # link /etc/foo/bar to linkable_etc_files/$1/etc/foo/bar. Create
4 # directories as necessary.
5 # CAUTION: This removes original files at the affected paths.
9 config_tree_prefix="${HOME}/config/all_new_2018/linkable_etc_files/"
10 cd "${config_tree_prefix}""${target}"
11 for path in $(find . -type f); do
12 src=$(echo "${path}" | cut -c2-)
13 dest=$(realpath "${path}")
14 ln -fs "${dest}" "${src}"