From 29b7c81250f12eda5bffafd439dcb07fae289a2d Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Fri, 26 Jan 2024 23:15:07 +0000 Subject: [PATCH] refactor: quoting usage of environment variables --- zsh-simple-abbreviations.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh-simple-abbreviations.zsh b/zsh-simple-abbreviations.zsh index beb9f48..04e9265 100644 --- a/zsh-simple-abbreviations.zsh +++ b/zsh-simple-abbreviations.zsh @@ -1,6 +1,7 @@ #!/usr/bin/env zsh -if [[ -n $ZSH_VERSION ]]; then +# Only run if executed in Zsh environment. +if [[ -n "${ZSH_VERSION}" ]]; then # Create new abbreviations map. typeset -Ag _zsh_simple_abbreviations