Refactoring and pretty printing of information
This commit is contained in:
10
ssh/setup.sh
10
ssh/setup.sh
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user