From 854e69c134da89f41e9149dc3263b6bd86acb947 Mon Sep 17 00:00:00 2001 From: yage Date: Sun, 16 Jan 2022 13:10:00 -0700 Subject: [PATCH] [BUGFIX] function names duplicated --- activator.plugin.zsh | 2 +- zsh/env-custom.zsh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/activator.plugin.zsh b/activator.plugin.zsh index 5eb09f2..cb8b584 100644 --- a/activator.plugin.zsh +++ b/activator.plugin.zsh @@ -5,7 +5,7 @@ # # ################################################################### -_CA__VERSION=1.0.2 +_CA__VERSION=1.0.3 _CA__DEPENDENCIES=(code-activator fzf jq git) ##################################################################### diff --git a/zsh/env-custom.zsh b/zsh/env-custom.zsh index 18d2e22..810c55d 100644 --- a/zsh/env-custom.zsh +++ b/zsh/env-custom.zsh @@ -48,9 +48,8 @@ _CA__CUSTOM_ENV_GET_VARIABLE_NAMES() { _CA__CUSTOM_ENV_GET_FUNCTION_NAMES() { { - grep -- '^function ' $_CA_ENV | sed 's/function //' grep -- '[^ #]*()' $_CA_ENV - } | sed 's/().*//' | sort -u + } | sed 's/().*//; s/^function //' | sort -u } _CA__CUSTOM_ENV_GET_RESTORE_NAMES() {