Skip to content

Instantly share code, notes, and snippets.

@peterycky
peterycky / start-with-astro.md
Last active April 20, 2024 07:25
Astro presentation materials

Start with Astro

Create the project

For my purpose, I use bun, though npm, yarn and pnpm (for node) are also supported

  bun create astro@latest

You'll be pleasently surprised by a helpful control center

@peterycky
peterycky / .zshrc
Created November 22, 2023 18:21
ZSH nvm load node from current working directory
# nvm auto-switch node version
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")