dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 8305f135cc7b0a05417916e3932dc81cabc4a2a5 (patch)
parent c9eedbd59fab0bbcf685d5924d41be073d738622
Author: Alex Karle <alex@alexkarle.com>
Date:   Wed, 30 Sep 2020 00:20:00 -0400

ed: Rename `bed` wrapper to just `e`

I really like the flow of editing a file with `e FILE`
both inside ed(1) and in the shell (tip from The UNIX
Programming Environment :) )

Diffstat:
Dbin/bed | 22----------------------
Abin/e | 22++++++++++++++++++++++
2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/bin/bed b/bin/bed @@ -1,22 +0,0 @@ -#!/bin/sh -# bed -- [slightly] better ed -for f in .tags tags; do - if [ -e "$f" ]; then - echo "using tags from ./$f" - COMP="$COMP --file=$f" - fi -done - -export INPUTRC="$HOME/etc/edinputrc" - -# Only include -v if using GNU ed -if ed --version >/dev/null 2>&1 ; then - VERBOSE="-v" -fi - -exec rlwrap \ - --complete-filenames \ - --logfile /tmp/rled.log \ - --histsize 10000 $COMP \ - --extra-char-after-completion '' \ - ed $VERBOSE -p"> " "$@" diff --git a/bin/e b/bin/e @@ -0,0 +1,22 @@ +#!/bin/sh +# e -- slightly improved ed(1) wrapper +for f in .tags tags; do + if [ -e "$f" ]; then + echo "using tags from ./$f" + COMP="$COMP --file=$f" + fi +done + +export INPUTRC="$HOME/etc/edinputrc" + +# Only include -v if using GNU ed +if ed --version >/dev/null 2>&1 ; then + VERBOSE="-v" +fi + +exec rlwrap \ + --complete-filenames \ + --logfile /tmp/rled.log \ + --histsize 10000 $COMP \ + --extra-char-after-completion '' \ + ed $VERBOSE -p"> " "$@"