1 if [ ! -d ~
/dotfiles
]; then
2 echo "************** Cloning Dotfiles Directory"
3 cd ~
; git clone git@github.com
:edthedev
/dotfiles.git
6 if [ ! -f ~
/.ssh
/id_rsa
]; then
7 echo "************** Generate an SSH key"
11 if [ ! -f ~
/.screenrc
]; then
12 echo "************** Setup Screen"
13 ln -s ~
/dotfiles
/screenrc ~
/.screenrc
16 if [ ! -f ~
/.config
/powershell
/Microsoft.PowerShell_profile.ps1
]; then
17 echo "************** Setup PowerShell"
18 chsh
--shell /usr
/bin
/pwsh
19 mkdir -p ~
/.config
/powershell
/
20 ln -s ~
/dotfiles
/Microsoft.PowerShell_profile.ps1 ~
/.config
/powershell
/Microsoft.PowerShell_profile.ps1
23 if [ ! -f ~
/.vimrc
]; then
24 echo "************** Link Vimrc"
25 ln -s ~
/dotfiles
/vimrc ~
/.vimrc
28 if [ -f ~
/.vimrc
]; then
29 echo "************** Configure Git to use Vim"
30 git config
--global core.editor
/usr
/bin
/vim
33 if [ -f ~
/.gitconfig
]; then
34 echo "************** Configure Git user"
35 git config
--global user.email
"edward@delaporte.us"
36 git config
--global user.name
"Edward Delaporte"
39 echo "************** Reminder to setup GitHub key"
40 echo "https://github.com/settings/keys"
41 echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git"