Last active
January 20, 2020 22:31
-
-
Save oakaigh/00c9e4dbab04b43c61eef9135b14e1e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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