瀏覽代碼

[bin] Add bootstrap script

Colin Powell 4 天之前
父節點
當前提交
0241eee31e
共有 2 個文件被更改,包括 20 次插入1 次删除
  1. 19 0
      bin/.bin/bootstrap.sh
  2. 1 1
      ssh/.ssh/config

+ 19 - 0
bin/.bin/bootstrap.sh

@@ -0,0 +1,19 @@
+#!/usr/bin/env sh
+
+/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+case "$(uname -s)" in
+Linux)
+    echo "Linux bootstrapping not implemented yet"
+    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
+    ;;
+Darwin)
+    eval "$(/opt/homebrew/bin/brew shellenv)"
+    ;;
+esac
+brew install stow pass just fzf direnv
+
+git clone https://code.unbl.ink/secstate/dotfiles ~/.dotfiles
+(cd ~/.dotfiles && make)
+git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh ~/.oh-my-zsh
+source ~/.zshrc
+scp powellc@192.168.40.208:~/.gnupg ~/.

+ 1 - 1
ssh/.ssh/config

@@ -10,7 +10,7 @@ Include /Users/powellc/.colima/ssh_config
 #
 Host *
   IdentityAgent $SSH_AUTH_SOCK
-  PreferredAuthentications publickey
+  #PreferredAuthentications publickey
   IdentitiesOnly no
 
 Host github.com