1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Does bash work better?

This commit is contained in:
Daniel Barber 2019-04-22 22:07:11 -04:00
parent a50d452c11
commit 60d2adedd4
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
6 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
#!/usr/bin/env bash
MAC_SETUP_DIR="$HOME/mac-setup"
BOLD="\033[1m"

View File

@ -1,8 +1,8 @@
#!/bin/sh
#!/usr/bin/env bash
# Ask the user to generate a code signing key for `chunkwm`
echo "Please generate a code signing certificate called 'chunkwm-cert' in Keychain Access"
sh -c 'read -r -p "Press any key to continue... " -n 1'
read -r -p "Press any key to continue... " -n 1
# We need to code sign chunkwm and skhd in order for them to be added to the
# accessibility allowed list.

View File

@ -1,4 +1,5 @@
#!/bin/sh
#!/usr/bin/env bash
cd "$HOME"
if [ $SHELL != $(which zsh) ]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# mas install 13764025890
mas install 1107421413

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"

View File

@ -1,4 +1,5 @@
#!/bin/sh
#!/usr/bin/env bash
MAC_SETUP_DIR="$HOME/mac-setup"
BOLD="\033[1m"
@ -19,7 +20,7 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
echo "============ Public key ============="
cat ~/.ssh/id_ed25519.pub
echo "====================================="
sh -c 'read -r -p "Press any key to continue... " -n 1'
read -r -p "Press any key to continue... " -n 1
fi
# Add the SSH key to the agent now to avoid multiple prompts