Skip to content

Commit 0e0f709

Browse files
authored
Merge pull request #28 from dev-satoshi/fix
修正したり追加したりいろいろ
2 parents a1f5c25 + 0673e49 commit 0e0f709

File tree

7 files changed

+28
-11
lines changed

7 files changed

+28
-11
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env zsh
22
set -euo pipefail
33

44
INSTALL_DIR="$HOME/dotfiles"

scripts/android_setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
echo "「Android」のセットアップを開始しました"
55

6+
SDK_DIR="/opt/homebrew/share/android-commandlinetools"
67
CMDLINE_TOOLS_DIR="/opt/homebrew/share/android-commandlinetools/cmdline-tools/latest"
78

89
if [ -d "$CMDLINE_TOOLS_DIR" ]; then
@@ -19,4 +20,7 @@ fi
1920
# Androidのライセンスに同意
2021
yes | flutter doctor --android-licenses || true
2122

23+
# FlutterにSDKパスを教える
24+
flutter config --android-sdk "$SDK_DIR"
25+
2226
echo "「Android」のセットアップが完了しました"

scripts/link_dotfiles.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ echo "「dotfiles」のセットアップを開始しました"
55

66
INSTALL_DIR="$HOME/dotfiles"
77

8+
sh "$INSTALL_DIR/scripts/link_dotfiles.sh"
89
sh "$INSTALL_DIR/scripts/homebrew_setup.sh"
910
sh "$INSTALL_DIR/scripts/asdf_setup.sh"
1011
sh "$INSTALL_DIR/scripts/vscode_setup.sh"
1112
sh "$INSTALL_DIR/scripts/xcode_setup.sh"
1213
sh "$INSTALL_DIR/scripts/android_setup.sh"
13-
sh "$INSTALL_DIR/scripts/link_dotfiles.sh"
1414

1515
echo "「dotfiles」のセットアップが完了しました"

vscode/extensions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
aaron-bond.better-comments
22
adelphes.android-dev-ext
33
akamud.vscode-theme-onedark
4+
aksharpatel47.vscode-flutter-helper
45
alexisvt.flutter-snippets
56
antonydalmiere.android-support
67
arjun.swagger-viewer
@@ -18,16 +19,19 @@ docker.docker
1819
donjayamanne.githistory
1920
dsznajder.es7-react-js-snippets
2021
eamodio.gitlens
22+
esafirm.kotlin-formatter
2123
esbenp.prettier-vscode
2224
fwcd.kotlin
2325
github.codespaces
2426
github.copilot
2527
github.copilot-chat
28+
github.vscode-github-actions
2629
gruntfuggly.todo-tree
2730
intellsmi.comment-translate
2831
ionutvmi.path-autocomplete
2932
koichisasada.vscode-rdbg
3033
marcelovelasquez.flutter-tree
34+
mathiasfrohlich.kotlin
3135
mhutchie.git-graph
3236
misogi.ruby-rubocop
3337
mosapride.zenkaku
@@ -45,7 +49,9 @@ numso.prettier-standard-vscode
4549
pkief.material-icon-theme
4650
rebornix.ruby
4751
redhat.vscode-yaml
52+
ricardo-emerson.flutter-print
4853
ritwickdey.liveserver
54+
robert-brunhage.flutter-riverpod-snippets
4955
shopify.ruby-extensions-pack
5056
shopify.ruby-lsp
5157
sianglim.slim

vscode/settings.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
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",
@@ -34,10 +38,7 @@
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",
@@ -47,4 +48,4 @@
4748
"editor.inlineSuggest.suppressSuggestions": true,
4849
"cody.debug.verbose": true,
4950
"cody.suggestions.mode": "auto-edit"
50-
}
51+
}

zsh/.zshrc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ precmd () { vcs_info }
1616

1717
# ASDF
1818
export 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
2429
export ANDROID_HOME=$HOME/dotfiles/android/sdk

0 commit comments

Comments
 (0)