From 734318639c255aa061ca87fc948146063c584beb Mon Sep 17 00:00:00 2001 From: Colin Henry Date: Sun, 15 May 2022 12:25:47 -0700 Subject: [PATCH] made some scripts more resuable --- scripts/acct.sh | 4 +++- scripts/brew-setup.sh | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/acct.sh b/scripts/acct.sh index 0dba279..bec1976 100755 --- a/scripts/acct.sh +++ b/scripts/acct.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash -eo pipefail ACCT=`whoami` +read -p "email: " EMAIL + # change default shell back to bash chsh -s /bin/bash $ACCT # Generate keypair for use with github -ssh-keygen -o -a 100 -t ed25519 -f $HOME/.ssh/id_ed25519 -C "colin@jchenry.me" +ssh-keygen -o -a 100 -t ed25519 -f $HOME/.ssh/id_ed25519 -C "$EMAIL" diff --git a/scripts/brew-setup.sh b/scripts/brew-setup.sh index 2a4cdd3..e5b64fb 100644 --- a/scripts/brew-setup.sh +++ b/scripts/brew-setup.sh @@ -1,5 +1,3 @@ #!/usr/bin/env bash -eo pipefail -ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -brew tap Homebrew/bundle -mas signin colin@jchenry.me -brew bundle --file ~/.config/Brewfile \ No newline at end of file +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +brew bundle --file ~/.config/Brewfile