]> apps.delaporte.us Git - dotfiles.git/blob - setup_cli_basics.sh
Oh my Posh profile
[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 ~/.ssh/id_rsa ]; then
7 echo "************** Generate an SSH key"
8 ssh-keygen
9 fi
10
11 if [ ! -f ~/.screenrc ]; then
12 echo "************** Setup Screen"
13 ln -s ~/dotfiles/screenrc ~/.screenrc
14 fi
15
16 if [ ! -f ~/.vimrc ]; then
17 echo "************** Link Vimrc"
18 ln -s ~/dotfiles/vimrc ~/.vimrc
19 fi
20
21 if [ -f ~/.vimrc ]; then
22 echo "************** Configure Git to use Vim"
23 git config --global core.editor /usr/bin/vim
24 fi
25
26 if [ -f ~/.gitconfig ]; then
27 echo "************** Configure Git user"
28 git config --global user.email "edward@delaporte.us"
29 git config --global user.name "Edward Delaporte"
30 fi
31
32 echo "************** Reminder to setup GitHub key"
33 cat GitHubKey.md
34 cat ~/.ssh/id_rsa.pub