Skip to content

Commit 026a009

Browse files
committed
minor updates to sync_brews
1 parent f9c590c commit 026a009

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

sw/bin/executable_sync_brews.sh

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ brew tap molovo/revolver
44
brew install --quiet revolver
55

66
tput civis
7-
revolver --style 'dots2' start 'Syncing brews...'
7+
revolver --style 'dots2' start 'Syncing local brews...'
88

99
# source ~/.brew_local
1010
if [ -f ~/.brew_local ]; then
@@ -22,17 +22,12 @@ if [[ $OSTYPE == 'darwin'* ]]; then
2222
brew tap homebrew/cask-fonts
2323
fi
2424

25-
# check whether jsonnet is installed via brew, uninstall it
26-
if [ -n "$(brew ls --versions jsonnet)" ]; then
27-
brew uninstall --force jsonnet
28-
fi
29-
30-
revolver update 'Updating existing brews...'
25+
revolver stop
3126

3227
# Update homebrew recipes
3328
brew update && brew upgrade && brew cleanup && brew doctor
3429

35-
revolver update 'Installing parallel tool...'
30+
revolver --style 'dots2' start 'Installing parallel tool...'
3631
brew install --quiet parallel
3732

3833
# check whether ~/.local/share/zinit/zinit.git exists, if not then invoke installation script
@@ -244,7 +239,7 @@ for installed_package in $installed_packages; do
244239
PACKAGES=("${(@)PACKAGES:#$installed_package}")
245240
done
246241

247-
revolver --style 'dots2' start 'Installing...'
242+
revolver --style 'dots2' start 'Installing brew packages...'
248243

249244
# get number of elements in the array $PACKAGES
250245
num_packages=${#PACKAGES[@]}
@@ -291,6 +286,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
291286
github
292287
google-cloud-sdk
293288
google-drive
289+
google-chrome
294290
notion
295291
slack
296292
stats
@@ -307,7 +303,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
307303
CASKS=("${(@)CASKS:#$installed_cask}")
308304
done
309305

310-
revolver --style 'dots2' start 'Installing...'
306+
revolver --style 'dots2' start 'Installing cask packages...'
311307

312308
# check if there are any casks to install
313309
if [[ ${#CASKS[@]} -gt 0 ]]; then
@@ -330,14 +326,15 @@ if [[ $OSTYPE == 'darwin'* ]]; then
330326
duti -s com.googlecode.iterm2 term
331327
fi
332328

333-
revolver update 'Installing...'
334-
329+
revolver update 'Setting up fzf...'
335330
# setup fzf
336331
yes | $(brew --prefix)/opt/fzf/install
337332

333+
revolver update 'Updating tldr...'
338334
# update tldr
339335
tldr --update
340336

337+
revolver update 'Updating navi cheats...'
341338
old_pwd=$(pwd)
342339
# check whether $(navi info cheats-path)/denisidoro__cheats directory exists
343340
if [ ! -d "$(navi info cheats-path)/denisidoro__cheats" ]; then
@@ -385,6 +382,7 @@ pip3 install --quiet pynvim
385382
pip3 install --quiet libtmux
386383
pip3 install --quiet tiktoken
387384

385+
revolver update 'Installing gh extensions...'
388386
# gh extensions
389387
gh extension install dlvhdr/gh-dash
390388
gh extension install github/gh-copilot

0 commit comments

Comments
 (0)