Refactoring and pretty printing of information

This commit is contained in:
2017-10-15 00:01:00 +02:00
parent 99c7cc50a8
commit f0f2988423
7 changed files with 106 additions and 40 deletions

View File

@@ -1,15 +1,17 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
print_info "Setting up SSH"
# copy private key to .ssh
# cp ${KEYFILE} ~/.ssh/thomas_rsa
# chmod 400 ~/.ssh/thomas_rsa
# ssh-add -K ~/.ssh/thomas_rsa
if [ ! -e ${HOME}/.ssh/config ]; then
rm -f ${HOME}/.ssh/config
ln -s ${DOTFILES}/ssh/config ${HOME}/.ssh/config
fi
linkfile ${DOTFILES}/ssh/config ${HOME}/.ssh/config
print_ok "SSH settings installed"
}
main "$@"