From 2ba9571efaaac7a5fd171e4faf2f8043ce9170ec Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 2 Feb 2022 23:08:09 -0500 Subject: [PATCH] Allow benchmarking of zsh --- zsh/.config/zsh/aliases | 1 + zsh/.config/zsh/functions | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/zsh/.config/zsh/aliases b/zsh/.config/zsh/aliases index 6c6fd0b..d34116f 100644 --- a/zsh/.config/zsh/aliases +++ b/zsh/.config/zsh/aliases @@ -68,3 +68,4 @@ alias v="$EDITOR" alias w="ruby -rwebrick -e'WEBrick::HTTPServer.new(Port: 8000, DocumentRoot: Dir.pwd).start'" alias wo="curl 'http://wttr.in/48823'" alias x="exit" +alias zt="zsh-time" diff --git a/zsh/.config/zsh/functions b/zsh/.config/zsh/functions index d6bacc7..edc1299 100644 --- a/zsh/.config/zsh/functions +++ b/zsh/.config/zsh/functions @@ -76,3 +76,9 @@ function test-rails { fi fi } + +function zsh-time { + for i in $(seq 1 10); do + time zsh -i -c exit + done +}