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() {