#!/bin/sh if command -v rlwrap >/dev/null; then exec env INPUTRC=$HOME/.ed_inputrc rlwrap \ --no-warnings \ --complete-filenames ed -p'> ' "$@" else exec ed -p'> ' "$@" fi