summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-02-17 10:38:06 +0000
committerAxel Beckert <abe@deuxchevaux.org>2020-02-17 13:41:05 +0100
commitb43af98a75ab4841ca0cd60433826d057e08143d (patch)
tree2e8be7e90aa540b497eede4fed12659ecaecb885
parentdae9b60216bdde37f4e34989d0175e67ac6f2d61 (diff)
downloadzsh-b43af98a75ab4841ca0cd60433826d057e08143d.tar.gz
zsh-b43af98a75ab4841ca0cd60433826d057e08143d.zip
d/zshrc: Tighten regex
It matched VERSION_ID and might match other keys or values as well.
-rw-r--r--debian/zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/zshrc b/debian/zshrc
index 5f975c373..3fb974897 100644
--- a/debian/zshrc
+++ b/debian/zshrc
@@ -106,7 +106,7 @@ autoload -Uz run-help
# If you don't want compinit called here, place the line
# skip_global_compinit=1
# in your $ZDOTDIR/.zshenv
-if grep -q 'ID.*=.*ubuntu' /etc/os-release && [[ -z "$skip_global_compinit" ]]; then
+if grep -q '^ID.*=.*ubuntu' /etc/os-release && [[ -z "$skip_global_compinit" ]]; then
autoload -U compinit
compinit
fi