ensure .ssh folder has correct permissions on creation
This commit is contained in:
parent
046f04ddf1
commit
dd0dfe6067
1 changed files with 3 additions and 5 deletions
8
init.sh
8
init.sh
|
@ -12,10 +12,11 @@ stow prezto
|
||||||
if [ ! "~/.ssh" ]
|
if [ ! "~/.ssh" ]
|
||||||
then
|
then
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
fi
|
|
||||||
stow ssh
|
stow ssh
|
||||||
|
fi
|
||||||
|
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 "*******************************"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue