Skip to content

Instantly share code, notes, and snippets.

@oakaigh
Last active January 20, 2020 22:31
Show Gist options
  • Save oakaigh/00c9e4dbab04b43c61eef9135b14e1e5 to your computer and use it in GitHub Desktop.
Save oakaigh/00c9e4dbab04b43c61eef9135b14e1e5 to your computer and use it in GitHub Desktop.
function skellet() {
root=/root
skel=/etc/skel
linkages=".bash_profile .bashrc .inputrc .vimrc"
for e in ${linkages}; do
until ln -s "${root}/$e" "${skel}/$e"; do
rm "${skel}/$e"
done
chmod 777 "${root}/$e"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment