Skip to content

Make update notice more visible with color and version diff#35

Merged
gmoon merged 2 commits into
mainfrom
feat/update-notice-visibility
Jul 4, 2026
Merged

Make update notice more visible with color and version diff#35
gmoon merged 2 commits into
mainfrom
feat/update-notice-visibility

Conversation

@gmoon

@gmoon gmoon commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Two improvements to the update experience:

1. More visible update notice

The notification was a dimmed one-liner easily missed. Now colored with version diff:

  Update available: v0.2.4 → v0.2.5
  Run lattice update to install

2. Install to ~/.local/bin by default (sudo-free updates)

The install script now defaults to ~/.local/bin when /usr/local/bin isn't writable. This means:

  • lattice update works without sudo
  • Auto-update becomes possible (future)
  • Fresh installs don't need elevated permissions

When ~/.local/bin isn't in PATH, prints shell-specific instructions (zsh/bash/fish).

The lattice update permission error now suggests reinstalling to ~/.local/bin instead of just recommending sudo.

🤖 Generated with Claude Code

gmoon and others added 2 commits July 4, 2026 10:16
Before: dimmed one-liner easily missed in output
After:
  Update available: v0.2.4 → v0.2.5
  Run lattice update to install

Shows current → latest with color (yellow header, green new version,
cyan command). Includes blank lines for visual separation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Install script now defaults to ~/.local/bin (user-writable) when
/usr/local/bin isn't writable. Ensures directory exists, prints
shell-specific PATH instructions if needed.

Update permission error now suggests reinstalling to ~/.local/bin
instead of just recommending sudo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gmoon gmoon merged commit acdef71 into main Jul 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant