From 1fc6b06747e33dc744e9870a3b58c28e75fc6f1c Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 20 Oct 2022 09:20:13 -0700 Subject: [PATCH] [zsh] Add init_env_aliases with some aliases to create maps and arrays --- zsh/func/init_env_aliases | 5 +++++ zshenv | 1 + 2 files changed, 6 insertions(+) create mode 100644 zsh/func/init_env_aliases diff --git a/zsh/func/init_env_aliases b/zsh/func/init_env_aliases new file mode 100644 index 0000000..eb06b21 --- /dev/null +++ b/zsh/func/init_env_aliases @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh +# Eryn Wells + +alias local-array="local -a" +alias local-map="local -A" diff --git a/zshenv b/zshenv index a06b3dd..11a7c4d 100644 --- a/zshenv +++ b/zshenv @@ -14,6 +14,7 @@ autoload -Uz do_init_functions typeset -a zsh_init_env_functions=( \ init_path \ init_env \ + init_env_aliases \ init_env_python \ init_env_vi \ init_env_$SYS \