-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_once_00.install_darwin.zsh.tmpl
executable file
·44 lines (40 loc) · 1.77 KB
/
run_once_00.install_darwin.zsh.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env zsh
# OSX only
{{ if (eq .chezmoi.os "darwin") }}
set -e # -e: exit on error
export GOPATH=$HOME/work/go
{{ if .enable.ruby }}
brew install rbenv ruby-build
# rbenv install 2.7.4
export PATH="$HOME/.rbenv/shims:$PATH"
rbenv global 2.7.4
{{ end }}
brew install -f git curl golang pv bat ruby aria2 hub fd bat jq rm-improved eza dust procs topgrade git-delta ripgrep pyenv gh grc grex nushell
yes | pyenv install 2
LAST=$(pyenv install --list | grep -v - | grep -v a | grep -v b | tail -1 | tr -d ' ' | grep -o '[0-9.]*')
yes | pyenv install $LAST
yes | pyenv global $LAST
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
{{- if .enable.reactnative }}
sudo gem install ffi
sudo gem install cocoapods
brew tap facebook/fb
brew install idb-companion
# type idb_companion &> /dev/null || (
# brew install protobuf grpc
# ([ -d /tmp/idb_companion ] || git clone [email protected]:facebook/idb.git /tmp/idb_companion) && \
# cd /tmp/idb_companion && \
# pod install && \
# ./idb_build.sh idb_companion build /opt/homebrew && \
# codesign --force --sign - --timestamp=none /opt/homebrew/Frameworks/FBDeviceControl.framework/Versions/A/Resources/libShimulator.dylib && \
# codesign --force --sign - --timestamp=none /opt/homebrew/Frameworks/FBSimulatorControl.framework/Versions/A/Resources/libShimulator.dylib && \
# codesign --force --sign - --timestamp=none /opt/homebrew/Frameworks/XCTestBootstrap.framework/Versions/A/Resources/libShimulator.dylib && \
# codesign --force --sign - --timestamp=none /opt/homebrew/Frameworks/FBControlCore.framework/Versions/A/Resources/libShimulator.dylib && \
# idb_companion --version
# )
pip3 install fb-idb --break-system-packages
brew install ios-deploy
{{ end }}
{{ end }}