Skip to content

fix: install script Nix dependency and Ghostty terminal fallback - #5

Merged
paveg merged 1 commit into
mainfrom
fix/install-script-and-ghostty-fallback
Dec 19, 2025
Merged

paveg merged 1 commit into
mainfrom
fix/install-script-and-ghostty-fallback

Conversation

@paveg

@paveg paveg commented Dec 19, 2025

Copy link
Copy Markdown
Owner

Summary

  • Install Nix before devbox (devbox requires Nix to function properly)
  • Add -f flag for non-interactive devbox installation
  • Only run devbox global shellenv when Nix is available (prevents "Nix: command not found" error)
  • Add terminal compatibility fallback for xterm-ghostty in zshrc

Details

Install script fixes

The install script was failing with bash: line 18: Nix: command not found because:

  1. Devbox requires Nix to be installed first
  2. devbox global shellenv outputs error text when Nix is missing, which gets interpreted as a bash command when passed to eval

Ghostty terminal fallback

When SSH'ing to servers without Ghostty's terminfo installed, the connection would fail with:

missing or unsuitable terminal: xterm-ghostty

The fix automatically detects if terminfo is missing and falls back to xterm-256color.

Test plan

  • Run curl -fsSL https://raw.githubusercontent.com/paveg/dots/main/install.sh | bash on a fresh machine
  • SSH to a server without Ghostty terminfo and verify terminal works

🤖 Generated with Claude Code

- Install Nix before devbox (devbox requires Nix to function)
- Add -f flag for non-interactive devbox installation
- Only run devbox global shellenv when Nix is available
- Add terminal compatibility fallback for xterm-ghostty

When SSH'ing to servers without Ghostty terminfo, automatically
fall back to xterm-256color to prevent connection issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@paveg
paveg merged commit b4c645e into main Dec 19, 2025
8 checks passed
@paveg
paveg deleted the fix/install-script-and-ghostty-fallback branch December 19, 2025 08:16
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