Last active
August 27, 2020 22:09
-
-
Save BenjaminWolfe/d7e6d981743e15d83a4e80640547b648 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
#!/bin/bash | |
declare -A config_link | |
current_folder=~/files/gladis/datateam/personal/benjamin/config | |
config_link[authorized_keys]=~/.ssh | |
config_link[main.code-workspace]=~/files | |
config_link[.bash_profile]=~ | |
config_link[autoexec.pth]=~/.local/lib/python3.7/site-packages | |
config_link[.Rprofile]=~ | |
config_link[settings.yaml]=~ | |
chmod 600 authorized_keys | |
chmod 700 .bash_profile | |
chmod 644 .Rprofile | |
chmod 777 autoexec.pth | |
chmod 777 symlinks.sh | |
chmod 600 ${config_link[authorized_keys]}/authorized_keys | |
for c in "${!config_link[@]}"; do | |
cp -s --remove-destination ${current_folder}/$c ${config_link[$c]}/$c | |
done | |
chmod 400 ${config_link[authorized_keys]}/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment