File tree Expand file tree Collapse file tree 7 files changed +28
-11
lines changed
Expand file tree Collapse file tree 7 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env zsh
22set -euo pipefail
33
44INSTALL_DIR=" $HOME /dotfiles"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ set -euo pipefail
33
44echo " 「Android」のセットアップを開始しました"
55
6+ SDK_DIR=" /opt/homebrew/share/android-commandlinetools"
67CMDLINE_TOOLS_DIR=" /opt/homebrew/share/android-commandlinetools/cmdline-tools/latest"
78
89if [ -d " $CMDLINE_TOOLS_DIR " ]; then
1920# Androidのライセンスに同意
2021yes | flutter doctor --android-licenses || true
2122
23+ # FlutterにSDKパスを教える
24+ flutter config --android-sdk " $SDK_DIR "
25+
2226echo " 「Android」のセットアップが完了しました"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ LINKS=(
1212 " $DOTFILES_DIR /git/.gitconfig:$HOME /.gitconfig"
1313 " $DOTFILES_DIR /git/.gitignore:$HOME /.gitignore"
1414 " $DOTFILES_DIR /git/.gitattributes:$HOME /.gitattributes"
15+ " $DOTFILES_DIR /asdf/.tool-versions:$HOME /.tool-versions"
1516 " $DOTFILES_DIR /aws/config:$HOME /.aws/config"
1617 " $DOTFILES_DIR /vscode/settings.json:$HOME /Library/Application Support/Code/User/settings.json"
1718 " $DOTFILES_DIR /android/sdk:$HOME /Library/Android/sdk"
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ echo "「dotfiles」のセットアップを開始しました"
55
66INSTALL_DIR=" $HOME /dotfiles"
77
8+ sh " $INSTALL_DIR /scripts/link_dotfiles.sh"
89sh " $INSTALL_DIR /scripts/homebrew_setup.sh"
910sh " $INSTALL_DIR /scripts/asdf_setup.sh"
1011sh " $INSTALL_DIR /scripts/vscode_setup.sh"
1112sh " $INSTALL_DIR /scripts/xcode_setup.sh"
1213sh " $INSTALL_DIR /scripts/android_setup.sh"
13- sh " $INSTALL_DIR /scripts/link_dotfiles.sh"
1414
1515echo " 「dotfiles」のセットアップが完了しました"
Original file line number Diff line number Diff line change 11aaron-bond.better-comments
22adelphes.android-dev-ext
33akamud.vscode-theme-onedark
4+ aksharpatel47.vscode-flutter-helper
45alexisvt.flutter-snippets
56antonydalmiere.android-support
67arjun.swagger-viewer
@@ -18,16 +19,19 @@ docker.docker
1819donjayamanne.githistory
1920dsznajder.es7-react-js-snippets
2021eamodio.gitlens
22+ esafirm.kotlin-formatter
2123esbenp.prettier-vscode
2224fwcd.kotlin
2325github.codespaces
2426github.copilot
2527github.copilot-chat
28+ github.vscode-github-actions
2629gruntfuggly.todo-tree
2730intellsmi.comment-translate
2831ionutvmi.path-autocomplete
2932koichisasada.vscode-rdbg
3033marcelovelasquez.flutter-tree
34+ mathiasfrohlich.kotlin
3135mhutchie.git-graph
3236misogi.ruby-rubocop
3337mosapride.zenkaku
@@ -45,7 +49,9 @@ numso.prettier-standard-vscode
4549pkief.material-icon-theme
4650rebornix.ruby
4751redhat.vscode-yaml
52+ ricardo-emerson.flutter-print
4853ritwickdey.liveserver
54+ robert-brunhage.flutter-riverpod-snippets
4955shopify.ruby-extensions-pack
5056shopify.ruby-lsp
5157sianglim.slim
Original file line number Diff line number Diff line change 1414 "editor.rulers" : [
1515 120
1616 ],
17- "editor.semanticHighlighting.enabled" : true
17+ "editor.semanticHighlighting.enabled" : true ,
18+ "ruby.lint" : {
19+ "rubocop" : false
20+ },
21+ "ruby.rubocop.useBundler" : false
1822 },
1923 "explorer.compactFolders" : false ,
2024 "javascript.updateImportsOnFileMove.enabled" : " never" ,
3438 "makefile.configureOnOpen" : false ,
3539 "notebook.insertFinalNewline" : true ,
3640 "diffEditor.ignoreTrimWhitespace" : false ,
37- "dart.flutterSdkPaths" : [
38- " /Users/satoshi.nosaka/.asdf/installs/flutter/3.24.4-stable"
39- ],
40- "dart.flutterSdkPath" : " /Users/satoshi.nosaka/flutter" ,
41+ "dart.flutterSdkPath" : " /Users/satoshi.nosaka/dotfiles/asdf/installs/flutter/3.29.2-stable" ,
4142 "editor.minimap.enabled" : false ,
4243 "workbench.startupEditor" : " none" ,
4344 "editor.accessibilitySupport" : " off" ,
4748 "editor.inlineSuggest.suppressSuggestions" : true ,
4849 "cody.debug.verbose" : true ,
4950 "cody.suggestions.mode" : " auto-edit"
50- }
51+ }
Original file line number Diff line number Diff line change @@ -16,9 +16,14 @@ precmd () { vcs_info }
1616
1717# ASDF
1818export ASDF_DATA_DIR=" $HOME /dotfiles/asdf"
19- export PATH=" ${ASDF_DATA_DIR:- $HOME / .asdf} /shims:$PATH "
20- fpath=(${ASDF_DATA_DIR:- $HOME / .asdf} /completions $fpath )
21- autoload -Uz compinit && compinit
19+ export PATH=" $ASDF_DATA_DIR /bin:$ASDF_DATA_DIR /shims:$PATH "
20+ if [ -f " $ASDF_DATA_DIR /asdf.sh" ]; then
21+ . " $ASDF_DATA_DIR /asdf.sh"
22+ fi
23+ if [ -f " $ASDF_DATA_DIR /completions/asdf.zsh" ]; then
24+ fpath=(" $ASDF_DATA_DIR /completions" $fpath )
25+ autoload -Uz compinit && compinit
26+ fi
2227
2328# Android SDK
2429export ANDROID_HOME=$HOME /dotfiles/android/sdk
You can’t perform that action at this time.
0 commit comments