Phase 7: Shell Prompt
Phase 7: Shell Prompt
Oh-My-Posh: BROKEN on ARM64 Termux
Oh-my-posh crashes on ARM64 Termux with Go runtime panics (writeSegmentsConcurrently race condition). All themes crash, including built-in minimal themes. disable_async = true does not fix it.
|
Do NOT use oh-my-posh on Termux. Also: pkg install oh-my-posh installs via pkg (ARM64 native), but the underlying Go binary still panics.
Solution: Use Starship
Starship is Rust-based and works reliably on ARM64.
curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir ~/.local/bin
# Remove oh-my-posh if installed
rm -f ~/.local/bin/oh-my-posh
rm -rf ~/.cache/oh-my-posh
Configure Starship in .zshrc
# Comment out oh-my-posh (broken on ARM64)
sed -i '/^if command -v oh-my-posh/,/^fi$/s/^/#/' ~/.zshrc
# Add starship init
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
Apply a Theme
# List available presets
starship preset --list
# Apply tokyo-night (matches workstation theme)
starship preset tokyo-night -o ~/.config/starship.toml
exec zsh
Expected prompt
u0_a385 .../dotfiles-optimus/apps main ! 20:11 >
| Check | Status |
|---|---|
Starship installed to |
[x] |
oh-my-posh removed |
[x] |
.zshrc updated (oh-my-posh commented, starship init added) |
[x] |
Theme applied (tokyo-night) |
[x] |
Powerline prompt working |
[x] |