Skip to content

Commit

Permalink
Fix running antidote update in a script
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Jul 25, 2023
1 parent b0e41d8 commit 4eccf21
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions systems/mac/mac.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env zsh

# This is a setup script for my personal Mac. It handles both setting up a
# machine from scratch and keeping the machine up to date and clean, which means
Expand All @@ -12,9 +12,6 @@
# Exit immediately if any command fails
set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
PROGRAMS_DIR="$SCRIPT_DIR/../../programs"

DOTFILES=~/code/dguo/dotfiles

hash gcc 2>/dev/null || {
Expand All @@ -27,7 +24,7 @@ hash brew 2>/dev/null || {
exit 1;
}

if [ "$(command -v zsh)" == "/bin/zsh" ]; then
if [ "$(command -v zsh)" = "/bin/zsh" ]; then
echo >&2 "Please change the system shell to the Homebrew managed Zsh:";
echo >&2 "See the Mac README for instructions";
exit 1;
Expand Down Expand Up @@ -108,8 +105,9 @@ vim +PlugClean +qall
mkdir -p ~/Library/Application\ Support/Code/User
ln -sf $DOTFILES/programs/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
# shellcheck disable=SC1091
source "$PROGRAMS_DIR/vscode/sync-extensions.sh"
bash "$DOTFILES/programs/vscode/sync-extensions.sh"

# Zsh
ln -sf $DOTFILES/programs/zsh/zsh_plugins.txt ~/.zsh_plugins.txt
source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh
antidote update

0 comments on commit 4eccf21

Please sign in to comment.