]> apps.delaporte.us Git - dotfiles.git/blob - setup_cli_basics.sh
949417b0930ccd7ff72e483b36033a8b1a4f028e
[dotfiles.git] / setup_cli_basics.sh
1 if [ ! -d ~/dotfiles ]; then
2 echo "************** Cloning Dotfiles Directory"
3 cd ~; git clone git@github.com:edthedev/dotfiles.git
4 fi
5
6 if [ ! -f ~/.screenrc ]; then
7 echo "************** Setup Screen"
8 ln -s ~/dotfiles/files/screenrc ~/.screenrc
9 fi
10
11 if [ -f ~/.vimrc ]; then
12 echo "************** Link Vimrc"
13 ln -s ~/dotfiles/files/vimrc ~/.vimrc
14 echo "************** Configure Git to use Vim"
15 git config --global core.editor /usr/bin/vim
16 fi
17
18 if [ -f ~/.gitconfig ]; then
19 echo "************** Configure Git user"
20 git config --global user.email "edward@delaporte.us"
21 git config --global user.name "Edward Delaporte"
22 fi
23
24 if [ ! -f ~/.ssh/id_ed25519 ]; then
25 echo "************** Generate an SSH key"
26 ssh-keygen -t ed25519
27
28 echo "************** Reminder to setup GitHub key"
29 cat GitHubKey.md
30 cat ~/.ssh/id_rsa.pub
31 fi
32