From e72152dab15252274f229b796b07c3423ff77d9f Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Wed, 14 Jun 2023 06:16:08 +0200 Subject: [PATCH] feat: lh alias for running Lighthouse audits --- programs/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/zsh.nix b/programs/zsh.nix index c7188bf..09163c2 100644 --- a/programs/zsh.nix +++ b/programs/zsh.nix @@ -52,6 +52,10 @@ curl -v -s -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-ser" "$1" 2>&1 > /dev/null } + lh() { + CHROME_PATH=$(which google-chrome-beta) pnpm dlx lighthouse $1 --view + } + unalias v # see https://github.com/cantino/mcfly