]> apps.delaporte.us Git - dotfiles.git/blobdiff - setup_cli_basics.sh
Move to files
[dotfiles.git] / setup_cli_basics.sh
index 10bb145b7e46dd1b1a9f5570dcae93c5e5fcfdcc..09768ffcefded9a96e76e0d4e011b08e60fe256d 100755 (executable)
@@ -5,15 +5,12 @@ fi
 
 if [ ! -f ~/.screenrc ]; then
        echo "************** Setup Screen"
 
 if [ ! -f ~/.screenrc ]; then
        echo "************** Setup Screen"
-       ln -s ~/dotfiles/screenrc ~/.screenrc
-fi
-
-if [ ! -f ~/.vimrc ]; then
-       echo "************** Link Vimrc"
-       ln -s ~/dotfiles/vimrc ~/.vimrc
+       ln -s ~/dotfiles/files/screenrc ~/.screenrc
 fi
 
 if [ -f ~/.vimrc ]; then
 fi
 
 if [ -f ~/.vimrc ]; then
+       echo "************** Link Vimrc"
+       ln -s ~/dotfiles/files/vimrc ~/.vimrc
        echo "************** Configure Git to use Vim"
        git config --global core.editor /usr/bin/vim
 fi
        echo "************** Configure Git to use Vim"
        git config --global core.editor /usr/bin/vim
 fi
@@ -22,14 +19,15 @@ if [ -f ~/.gitconfig ]; then
        echo "************** Configure Git user"
        git config --global user.email "edward@delaporte.us"
        git config --global user.name "Edward Delaporte"
        echo "************** Configure Git user"
        git config --global user.email "edward@delaporte.us"
        git config --global user.name "Edward Delaporte"
+       git config --global pull.ff only
 fi
 
 fi
 
-if [ ! -f ~/.ssh/id_rsa ]; then
+if [ ! -f ~/.ssh/id_ed25519 ]; then
        echo "************** Generate an SSH key"
        echo "************** Generate an SSH key"
-       ssh-keygen
+       ssh-keygen -t ed25519
 
        echo "************** Reminder to setup GitHub key"
 
        echo "************** Reminder to setup GitHub key"
-       cat GitHubKey.md
+       cat ~/dotfiles/files/GitHubKey.md
        cat ~/.ssh/id_rsa.pub
 fi
 
        cat ~/.ssh/id_rsa.pub
 fi