Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.data
export XDG_CACHE_HOME=$HOME/.cache
export XDG_STATE_HOME=$HOME/.state
export PNPM_STORE_PATH=$HOME/.pnpm-store
export ZSH="$HOME/.oh-my-zsh"

mkdir -p $XDG_CONFIG_HOME $XDG_DATA_HOME $XDG_CACHE_HOME $XDG_STATE_HOME $PNPM_STORE_PATH
mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_CACHE_HOME" "$XDG_STATE_HOME"

alias pint="./vendor/bin/pint"
alias pa="php artisan"
Expand Down
238 changes: 17 additions & 221 deletions .github/workflows/pipeline.yml

Large diffs are not rendered by default.

46 changes: 18 additions & 28 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,41 +1,31 @@
# Environment
. /etc/profile.d/.env

# Path configuration (must be before tools that depend on it)
export PATH="$HOME/.local/bin:$HOME/.fzf/bin:$HOME/.opencode/bin:$PNPM_HOME:$PATH"
# Path configuration
export PATH="$HOME/.local/bin:$PATH"

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# Load the build-pinned Zinit installation
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
if [[ ! -r "$ZINIT_HOME/zinit.zsh" ]]; then
print -u2 "Missing pinned Zinit installation: $ZINIT_HOME"
# Load the development shell framework
export ZSH="$HOME/.oh-my-zsh"
if [[ ! -r "$ZSH/oh-my-zsh.sh" ]]; then
print -u2 "Missing Oh My Zsh installation: $ZSH"
return 1
fi
source "${ZINIT_HOME}/zinit.zsh"

# Initialize completion before sourcing Oh My Zsh plugins that register compdefs
autoload -Uz compinit
compinit

# Essential plugins (loaded immediately)
zinit ice ver"85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5"
zinit light zsh-users/zsh-autosuggestions
zinit ice ver"24105b15714bfec37989ed5c5b6e60f572253019"
zinit light Aloxaf/fzf-tab

# Build-pinned Oh My Zsh libraries and plugins
source "$ZSH/lib/git.zsh"
source "$ZSH/lib/completion.zsh"
source "$ZSH/plugins/git/git.plugin.zsh"
source "$ZSH/plugins/aws/aws.plugin.zsh"
source "$ZSH/plugins/gh/gh.plugin.zsh"

# Syntax highlighting (load last, with turbo)
zinit wait lucid ver"3d574ccf48804b10dca52625df13da5edae7f553" for \
zdharma-continuum/fast-syntax-highlighting
ZSH_THEME=""
zstyle ':omz:update' mode disabled
plugins=(
git
aws
gh
zsh-autosuggestions
fzf-tab
fast-syntax-highlighting
)
source "$ZSH/oh-my-zsh.sh"

# Tool initializations (synchronous - needed for prompt)
eval "$(starship init zsh)"
Expand Down Expand Up @@ -89,7 +79,7 @@ zstyle ':completion:*' menu select
# FZF-tab styling
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'eza --color --icons $realpath'
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always --icons $realpath'
zstyle ':fzf-tab:complete:(ls|l|ll|la|lt|eza):*' fzf-preview '[[ -d $realpath ]] && eza -1 --color=always --icons $realpath || bat --color=always --style=numbers $realpath 2>/dev/null || cat $realpath'
zstyle ':fzf-tab:complete:(ls|l|ll|la|lt|eza):*' fzf-preview '[[ -d $realpath ]] && eza -1 --color=always --icons $realpath || cat $realpath'
zstyle ':fzf-tab:*' fzf-flags --color=fg:1,fg+:2 --bind=tab:accept
zstyle ':fzf-tab:*' use-fzf-default-opts yes
zstyle ':fzf-tab:*' switch-group '<' '>'
22 changes: 1 addition & 21 deletions .zshrc.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,10 @@ if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# Load the build-pinned Zinit installation
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
if [[ ! -r "$ZINIT_HOME/zinit.zsh" ]]; then
print -u2 "Missing pinned Zinit installation: $ZINIT_HOME"
return 1
fi
source "${ZINIT_HOME}/zinit.zsh"

# Initialize completion before sourcing Oh My Zsh plugins that register compdefs
# Initialize the standard Zsh completion system
autoload -Uz compinit
compinit

# Minimal plugins for production (loaded immediately)
zinit ice ver"85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5"
zinit light zsh-users/zsh-autosuggestions

# Build-pinned Oh My Zsh library and git plugin
source "$ZSH/lib/git.zsh"
source "$ZSH/plugins/git/git.plugin.zsh"

# Syntax highlighting (load last)
zinit wait lucid ver"3d574ccf48804b10dca52625df13da5edae7f553" for \
zdharma-continuum/fast-syntax-highlighting

# Basic aliases
alias ll='ls -lah'
alias la='ls -a'
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository builds the `ghcr.io/prvious/frankenphp` development and producti

- `docker build --build-arg VERSION=8.5-trixie --target dev -t frankenphp:dev .` builds the local development image.
- `docker build --build-arg VERSION=8.5-trixie --target prod -t frankenphp:prod .` builds the production image.
- `docker buildx bake --print` inspects the default PHP 8.4/8.5 matrix; override `PHP_VERSION`, `SHA`, and `LATEST` to reproduce CI inputs.
- `docker buildx bake --print` inspects the default PHP 8.4/8.5 minor-version matrix; override `PHP_VERSION`, `LATEST`, `SHA`, and `REFRESH` when testing matrix or dependency-refresh changes.
- `docker buildx bake` builds all configured variants and architectures.
- `docker run --rm -v "$PWD/test.php:/app/test.php" frankenphp:dev php /app/test.php dev` validates extensions, binaries, and pnpm configuration. Substitute the production image and `production` for that target.

Expand Down
Loading
Loading