From 148632c5f9463400558ce81e5cdc84729f75804d Mon Sep 17 00:00:00 2001 From: David Peter Date: Fri, 2 Oct 2026 10:45:49 +0200 Subject: [PATCH] Remove shell alias example from README --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fddbdfd..62db4e2 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ hyperfine -N 'grep TODO /home/user' ``` -### Shell functions and aliases +### Shell functions If you are using bash, you can export shell functions to directly benchmark them with hyperfine: @@ -118,13 +118,10 @@ export -f my_function hyperfine --shell=bash my_function ``` -Otherwise, inline them into or source them from the benchmarked program: +Otherwise, inline the function into the benchmarked command: ```sh hyperfine 'my_function() { sleep 1; }; my_function' - -echo 'alias my_alias="sleep 1"' > /tmp/my_alias.sh -hyperfine '. /tmp/my_alias.sh; my_alias' ``` ### Exporting results