Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/ken-ty/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-ty committed Apr 8, 2024
2 parents 46285f8 + 65dbcee commit 1bd9fe0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asdf/.tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodejs 20.4.0
flutter 3.16.7-stable
ruby 3.2.2
ruby 2.7.8
14 changes: 14 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ set -eu # エラーが発生した場合や未定義の変数が使用された
display_name="vscode/my_vscode_extensions.sh"
if is_setup "$display_name"; then
echo -e "\n$display_name を実行して拡張をインポートします."
set +e # 途中でエラーが発生しても続行する
source "$DOT_DIR/vscode/my_vscode_extensions.sh"
set -e # エラーが発生したら終了する
echo "$display_name を実行して拡張をインポートしました."
fi

Expand All @@ -153,5 +155,17 @@ set -eu # エラーが発生した場合や未定義の変数が使用された
echo "$display_name のリンクを作成しました."
fi

display_name="git/.gitconfig"
src="$DOT_DIR/git/.gitconfig"
dist="$HOME/.gitconfig"
if is_setup "$display_name"; then
echo -e "\n$display_name のリンクを作成します."

[ -e "$dist" ] && mkdir -p "$BACKUP_DIR/git/" && mv "$dist" "$BACKUP_DIR/git/.gitconfig" # バックアップ

ln -sf "$src" "$dist" # リンク作成
echo "$display_name のリンクを作成しました."
fi

echo -e "\ndotfiles のリンクを作成しました."
# }}} dotfiles のリンク作成 ここまで

0 comments on commit 1bd9fe0

Please sign in to comment.