$ replify echo
Initialized REPL for [echo]
echo> "Hello, World!"
Hello, World!
echo> "It works!"
It works!
$ replify git
Initialized REPL for [git]
git> init
Initialized empty Git repository in /your/directory/here/.git/
git> remote add origin https://your-url/repo.git
git> checkout -b new-branch
Switched to a new branch 'new-branch'
git> push
Took a shot at a different approach by starting a subshell with
<Enter>
bound to<Enter>$1<Space>
. This approach provides readline and bash tab completion. Haven't figured out how to remove the need to hit<Enter>
once to get things going, but this isn't annoying enough to keep me from using it. Linking a gist rather than posting in-line here because it contains a^M
control character which doesn't copy-paste well.https://gist.github.com/trapier/887ac740ba0d68f9d1dab87a7d6fe253
Example in use: