X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/10f069c4acd0266ab4f46d512da30da518a99924..ea3abfdad5df78e020429d07e6e476b1cb1317e8:/setup_cli_basics.sh?ds=sidebyside diff --git a/setup_cli_basics.sh b/setup_cli_basics.sh index ff7b64c..1633f5f 100755 --- a/setup_cli_basics.sh +++ b/setup_cli_basics.sh @@ -3,33 +3,42 @@ if [ ! -d ~/dotfiles ]; then cd ~; git clone git@github.com:edthedev/dotfiles.git fi -if [ ! -f ~/.ssh/id_rsa ]; then - echo "************** Generate an SSH key" - ssh-keygen +if [ ! -f ~/.bashrc ]; then + echo "************** Setup Bash" + ~/dotfiles/setup/bash.sh fi if [ ! -f ~/.screenrc ]; then echo "************** Setup Screen" - ln -s ~/dotfiles/screenrc ~/.screenrc + ln -s ~/dotfiles/files/screenrc ~/.screenrc +fi + +if [ ! -f ~/.gitconfig ]; then + 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 + git config --global core.editor /usr/bin/vi fi if [ ! -f ~/.vimrc ]; then echo "************** Link Vimrc" - ln -s ~/dotfiles/vimrc ~/.vimrc + ln -s ~/dotfiles/files/vimrc ~/.vimrc + ls -a ~ | grep vim fi -if [ -f ~/.vimrc ]; then - echo "************** Configure Git to use Vim" - git config --global core.editor /usr/bin/vim -fi +if [ ! -f ~/.ssh/id_ed25519 ]; then + echo "************** Generate an SSH key" + ssh-keygen -t ed25519 -if [ -f ~/.gitconfig ]; then - echo "************** Configure Git user" - git config --global user.email "edward@delaporte.us" - git config --global user.name "Edward Delaporte" + echo "************** Reminder to setup GitHub key" + cat ~/dotfiles/doc/GitHubKey.md + cat ~/.ssh/id_ed25519.pub fi -echo "************** Reminder to setup GitHub key" -echo "https://github.com/settings/keys" -echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git" -cat ~/.ssh/id_rsa.pub +echo "************** Status: Symlinks " +ls -la ~ | grep "\->" +echo "************** Status: Git Config" +cat ~/.gitconfig +echo "************** Status: Pubkey " +cat ~/.ssh/id_ed25519.pub \ No newline at end of file