For example, by git binds git commands so that you no longer retype git every time.
$ by git
$ git
# ^-- appears automatically to make subsequent git workflows
$ git status
$ git add README.md
$ git commit -m "add README.md"Unbind by by without arguments:
$ by
$Note that the bounded commandline buffer is still a normal commandline buffer. You still have chance to modify it before execution.
See Why by? for more use cases.
Supported shells: zsh, fish
with sheldon
$ sheldon add by --git https://github.com/atusy/by-binds-yourselfsource by.zshwith fisher
fisher install atusy/by-binds-yourselfsource by.fishThis project is inspired by mchav/with, the program prefixing for continuous workflow using a single tool.
To bring more flexibility, by is designed to use native commandline buffer.
completions, history, and so on
# completion
$ by git
$ git ch<TAB>$ BAR="$(cat file)"
$ by 'FOO="$BAR"'$ by gcc -o output input.c
$ gcc -o output input.c
$ gcc -o output input.c
$ gcc -o YET_ANOTHER_OUTPUT input.c
# The bind is just a normal buffer that can be modified