cd ~; git clone git@github.com:edthedev/dotfiles.git
fi
-if [ ! -f ~/.ssh/id_rsa ]; then
- echo "************** Generate an SSH key"
- ssh-keygen
-fi
-
if [ ! -f ~/.screenrc ]; then
echo "************** Setup Screen"
- ln -s ~/dotfiles/screenrc ~/.screenrc
-fi
-
-if [ ! -f ~/.vimrc ]; then
- echo "************** Link Vimrc"
- ln -s ~/dotfiles/vimrc ~/.vimrc
+ ln -s ~/dotfiles/files/screenrc ~/.screenrc
fi
if [ -f ~/.vimrc ]; then
+ echo "************** Link Vimrc"
+ ln -s ~/dotfiles/files/vimrc ~/.vimrc
echo "************** Configure Git to use Vim"
git config --global core.editor /usr/bin/vim
fi
git config --global user.name "Edward Delaporte"
fi
-echo "************** Reminder to setup GitHub key"
-cat GitHubKey.md
-cat ~/.ssh/id_rsa.pub
+if [ ! -f ~/.ssh/id_ed25519 ]; then
+ echo "************** Generate an SSH key"
+ ssh-keygen -t ed25519
+
+ echo "************** Reminder to setup GitHub key"
+ cat GitHubKey.md
+ cat ~/.ssh/id_rsa.pub
+fi
+