]> apps.delaporte.us Git - dotfiles.git/blob - setup_cli_basics.sh
Add ff only
[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 git config --global pull.ff only
23 fi
24
25 if [ ! -f ~/.ssh/id_ed25519 ]; then
26 echo "************** Generate an SSH key"
27 ssh-keygen -t ed25519
28
29 echo "************** Reminder to setup GitHub key"
30 cat GitHubKey.md
31 cat ~/.ssh/id_rsa.pub
32 fi
33