From 52cda3f34ee4a2d14d7ba67e91a4d204adee6960 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:30:58 +1100 Subject: [PATCH] Add 'dump' func, which shows you its arguments quoted --- dot-config/zsh/all/functions.zsh | 1 + dot-config/zsh/functions/dump | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 dot-config/zsh/functions/dump diff --git a/dot-config/zsh/all/functions.zsh b/dot-config/zsh/all/functions.zsh index 38d8133..65dc99f 100644 --- a/dot-config/zsh/all/functions.zsh +++ b/dot-config/zsh/all/functions.zsh @@ -3,5 +3,6 @@ # inherited in the environment so non-login shells need them, and you'll want # to call one in a script so non-interactive shells need them. autoload count +autoload dump autoload enphp autoload -Uz zargs zcalc zmv diff --git a/dot-config/zsh/functions/dump b/dot-config/zsh/functions/dump new file mode 100644 index 0000000..6a7b885 --- /dev/null +++ b/dot-config/zsh/functions/dump @@ -0,0 +1,2 @@ +#! zsh +print ${(qq)argv}