ensure .ssh folder has correct permissions on creation

This commit is contained in:
Stefen Auris 2019-07-10 14:53:53 -04:00
parent 046f04ddf1
commit dd0dfe6067

View file

@ -12,10 +12,11 @@ stow prezto
if [ ! "~/.ssh" ] if [ ! "~/.ssh" ]
then then
mkdir ~/.ssh mkdir ~/.ssh
stow ssh
fi fi
stow ssh chmod 0700 ~/.ssh
chmod -R 0600 ~/.ssh/* chmod -R 0600 ~/.ssh/*
ln -s "$HOME/stevset/mc" ~/.config/mc cp "$HOME/stevset/mc" ~/.config/mc
#setup prezto #setup prezto
echo "Initializing Prezto" echo "Initializing Prezto"
@ -54,9 +55,6 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
git config --global user.email "$email" git config --global user.email "$email"
fi fi
echo "Initializing Submodules"
git submodule init && git submodule update
echo "*******************************" echo "*******************************"
echo "* Restart your terminal *" echo "* Restart your terminal *"
echo "*******************************" echo "*******************************"