Skip to content
Myr

Remove shell alias example from README

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 09f02e4 · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:README.md+2 added-5 removed
106 unmodified lines
107hyperfine -N 'grep TODO /home/user'108```109110111### Shell functions and aliases111### Shell functions112113If you are using bash, you can export shell functions to directly benchmark them with hyperfine:114115```bash
1 unmodified line
117export -f my_function118hyperfine --shell=bash my_function119```120121Otherwise, inline them into or source them from the benchmarked program:121Otherwise, inline the function into the benchmarked command:122123```sh124hyperfine 'my_function() { sleep 1; }; my_function'125126echo 'alias my_alias="sleep 1"' > /tmp/my_alias.sh127hyperfine '. /tmp/my_alias.sh; my_alias'125```126127### Exporting results128
216 unmodified lines