Skip to content

Restore setup.sh: configure terminal Nerd Font + non-destructive ~/.bashrc merge#131

Open
joematrix77 wants to merge 7 commits into
ChrisTitusTech:mainfrom
joematrix77:fix/restore-setup-nerdfont
Open

Restore setup.sh: configure terminal Nerd Font + non-destructive ~/.bashrc merge#131
joematrix77 wants to merge 7 commits into
ChrisTitusTech:mainfrom
joematrix77:fix/restore-setup-nerdfont

Conversation

@joematrix77

@joematrix77 joematrix77 commented Jun 14, 2026

Copy link
Copy Markdown

Summary

Restores a working setup.sh (upstream deleted it) and fixes the most common "it installed but the prompt icons are blank boxes" problem on modern distros.

Why

After setup.sh was removed, the README points users at a third-party fork, and even with the old script the prompt/fastfetch icons render as blank boxes on Ubuntu 26.04. Root cause: the installer installs a Nerd Font but never tells the terminal emulator to use it.

What this PR does

  1. Configures the terminal font via gsettings for Ptyxis (Ubuntu 26.04+ default terminal) and GNOME Terminal. This is the actual fix for blank-box glyphs.
  2. Installs JetBrainsMono Nerd Font (standard variant) instead of the cramped Mono variant, so icons render at a sensible width.
  3. Non-destructive bash merge. Backs up the existing ~/.bashrc to ~/.bashrc.bak.<timestamp>, then makes ~/.bashrc a small loader that sources the mybash config and then ~/.bashrc_personal. Users keep their own settings across installs, re-runs, and git pulls.
  4. Safer install: refuses to run as root, and removes dangling symlinks before relinking (a failure mode that could leave a broken ~/.bashrc).

Notes

  • Run as a normal user (not sudo); sudo is invoked only where needed.
  • After install, fully quit and reopen the terminal so the font/config take effect.
  • sh -n setup.sh passes.

I understand setup.sh was intentionally removed upstream — happy to adapt this (e.g. ship it under a different name or as a setup/ script) if you'd prefer to keep it out of the repo root.

Screenshot

Working prompt after install (Ptyxis on Ubuntu 26.04, Starship + JetBrainsMono Nerd Font — icons render correctly):

Beautiful Bash working prompt

joematrix added 7 commits June 14, 2026 14:57
…ashrc merge

- Configure terminal font in Ptyxis/GNOME Terminal via gsettings (fixes blank-box icons)
- Install JetBrainsMono Nerd Font
- Merge ~/.bashrc into a loader sourcing mybash + ~/.bashrc_personal
- Link from full clone, remove dangling symlinks safely, refuse to run as root
- Update README: fork note, fixes section, corrected install instructions
- New starship-theme command: swaps the 6 segment colors against a pristine
  base so Powerline glyphs/layout are preserved
- Palettes: ubuntu, claude, arch, fedora, debian, mint, manjaro, popos, nord
- setup.sh installs it to ~/.local/bin; README documents usage
- Remove JetBrainsMono font (not just Meslo)
- Restore real ~/.bashrc loader from timestamped backup (not only symlinks)
- Preserve ~/.bashrc_personal (user's own settings)
- Remove starship-theme picker; reset terminal font (Ptyxis/GNOME Terminal)
- README: document what uninstall reverses
Default still removes everything. --keep-deps skips package/font/Starship/fzf/
zoxide removal and only reverts the mybash config, theme picker, terminal font,
and clone. Adds --help; errors on unknown flags.
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