]> apps.delaporte.us Git - dotfiles.git/blob - setup.sh
Powershell 7 for Pi
[dotfiles.git] / setup.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 ~/.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
21 fi
22
23 if [ ! -f ~/.vimrc ]; then
24 echo "************** Link Vimrc"
25 ln -s ~/dotfiles/vimrc ~/.vimrc
26 fi
27
28 if [ -f ~/.vimrc ]; then
29 echo "************** Configure Git to use Vim"
30 git config --global core.editor /usr/bin/vim
31 fi
32
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"
37 fi
38
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"
42 cat ~/.ssh/id_rsa.pub