hi.sh -> sshrc supercharged

EXPERIMENTAL UNTIL v1.0.0

Don’t sshush your hosts, say hi!

hi <host> is ssh <host> with your shell setup along: the session opens with your prompt, your aliases, and your editor configs, on a host that has none of them, and what hi put there is removed when it ends. Nothing is installed on the host. The same command opens a session in a container, a Nomad allocation, or a Kubernetes pod.

Payload Release OpenSSF Best Practices OpenSSF Scorecard OpenSSF Baseline License: MIT

In Sixty Seconds

git clone https://github.com/ivylikethevine/say-hi ~/say-hi   # or any directory you like
~/say-hi/scripts/install.sh    # wires your shell's rc file and asks one question
exec $SHELL                    # reload
hi <anything>                  # ssh, with your prompt, aliases, and editors along

No sudo: the install links ~/.local/bin/hi and writes only to your rc files and ~/.config/say-hi. --dry-run shows every write first.

hi into a web host whose site answers 502: the site and errs aliases from the overlay find a refused upstream, sudo vim opens on the carried vimrc to fix the port, restart restarts nginx through systemd, and the site answers 200

View these docs as a website here. New here? docs/GETTING-STARTED.md picks a starting path; docs/README.md indexes the rest.

Contents


What You Get

Each links to its story and GIF in the tour.

Target Requirements

Minimal Full Linux macOS FreeBSD OpenBSD Alpine client Windows Windows client

  • Your machine: bash 3.2+, tar, gzip, base64, and ssh or the backend’s CLI (docker, podman, nerdctl, finch, nomad, kubectl).
  • The target: base64 (or openssl), mktemp, and a tar that reads gzip. With bash you get the full session; without it, your aliases and a colored prompt.
  • Shells hi styles: bash 3.2, zsh 5.5, and fish 3.3 or newer.

The payload badge is what each connect sends. Every OS and shell, and everything answered no: docs/COMPATIBILITY.md.

Installation

From a clone, the four lines above. From a package (docs/PACKAGING.md has every channel):

# Debian, Ubuntu
sudo curl -fsSLo /etc/apt/keyrings/say-hi.asc https://ivylikethevine.github.io/say-hi/say-hi.asc
echo 'deb [signed-by=/etc/apt/keyrings/say-hi.asc] https://ivylikethevine.github.io/say-hi/apt stable main' |
  sudo tee /etc/apt/sources.list.d/say-hi.list
sudo apt update && sudo apt install say-hi

# Fedora, RHEL, and derivatives
sudo curl -fsSLo /etc/yum.repos.d/say-hi.repo https://ivylikethevine.github.io/say-hi/say-hi.repo
sudo dnf install say-hi

# Alpine
wget -O /etc/apk/keys/say-hi.rsa.pub https://ivylikethevine.github.io/say-hi/say-hi.rsa.pub
echo https://ivylikethevine.github.io/say-hi/apk >>/etc/apk/repositories
apk add say-hi

# macOS
brew install ivylikethevine/tap/say-hi

Then run hi --install once per user to wire your shell.

  • Wiring: the install wires your login shell and any of bash, zsh, and fish that already has an rc file, and asks which preset to start from. It checks each rc’s syntax first and leaves the rest of the file alone.
  • Your flags: --shell, --link, --preset, and --print-rc (for an rc a dotfile manager owns) are in docs/USAGE.md; unattended installs are Installing without a terminal.
  • Updating: hi --update moves a clone to the newest release tag, and refuses one whose signature it cannot verify; a package updates through its package manager.
  • Uninstalling: hi --uninstall removes hi’s rc lines, its link, and the settings.sh the install wrote; --purge removes the rest of ~/.config/say-hi too. For a clone:

    hi --uninstall --purge && rm -rf ~/say-hi
    

All twenty flags are in docs/USAGE.md and man hi; a single-dash option hi does not claim goes to ssh. When something is slow or failing, run hi --doctor and see docs/TROUBLESHOOTING.md.

Configuration

Your config lives in ~/.config/say-hi/ (the overlay) and rides along to every host you say hi to. hi --configure writes settings.sh there and opens it in your editor. hi --edit colors and hi --edit packages copy the shipped defaults in for editing. Your own ~/.vimrc, ~/.nanorc, and other editor configs ride without a copy.

IMPORTANT: every file in the overlay is copied to every host you say hi to. Keep local-only lines (a token, an internal hostname) in ~/.bashrc and friends instead. What lands on a target: docs/SECURITY.md.

More: every setting and preset in docs/SETTINGS.md, the tools hi wires in (your prompt program, mise, direnv, bat, eza) in docs/INTEGRATIONS.md, and how a session reaches the target in docs/HOW-IT-WORKS.md.

Hostname, Username, and Group/Tag Colors

Every user and host gets a color derived from its name. Pin one in hi --edit colors (prod-db = "yellow" under [hostname]), color a group with a tag (hi --add-tag web1 prod), and check the result with hi --preview colors. Patterns, truecolor schemes, and the hash in your own prompt: docs/COLORS.md.

Built from/with/in mind

  • sshrc — from — (became hi.sh)
  • sshm — with — (optional, but highly recommended for ~/.ssh/config host tags)
  • bat — in mind — (the reason the aliases.sh fallthrough logic works as portably as it does; bat is sometimes batcat)
  • eza — in mind — (the colorized ls upgrade, with its flags kept apart from plain ls’s for older hosts)
  • fish — with — (my preferred shell: its defaults/built-ins are easy to understand, but it is not POSIX)

say-hi and the alternatives

How say-hi compares to similar tools, and when to use something else: docs/ALTERNATIVES.md.

Testing

tests/test_runner.sh runs the suites; --group fast and --group lint are the gate CI runs on every push. Runbook: docs/TESTING.md.

Tests Bashcov

The coverage badge measures the shipped code over the full sweep and gates nothing.

Getting help and contributing

Questions, bugs, and ideas: docs/SUPPORT.md (hi --doctor --json answers most of what a report needs). Anything exploitable goes privately, per docs/SECURITY.md. Changes: docs/CONTRIBUTING.md; who decides: docs/GOVERNANCE.md.

AI usage

Heavily inspired by Dictionarry/Profilarr’s AI Transparency Statement.

This started as code written entirely by me, but I have used generative AI to write large parts of it. All of the code here is my responsibility regardless: AI is a tool, not an owner of a project. I have personally understood, reviewed, and approved all of the AI-generated code in this repository, and mainline releases carry the same accountability to me as anything I write and publish myself.

Roadmap

docs/ROADMAP.md: what is left to build, and what each release waits on.

License

MIT.


This site uses Just the Docs, a documentation theme for Jekyll.