From e451fbdd22e479ae51db80148107d59f7e37448e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 5 Jun 2025 11:45:19 +0200 Subject: [PATCH] zsh:options: Set C_PRECEDENCES --- .config/zsh/zshrc.d/10-options.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/zsh/zshrc.d/10-options.zsh b/.config/zsh/zshrc.d/10-options.zsh index e35c0de..66d94f0 100644 --- a/.config/zsh/zshrc.d/10-options.zsh +++ b/.config/zsh/zshrc.d/10-options.zsh @@ -233,6 +233,11 @@ # input irrespective of the setting of C_BASES. setopt C_BASES + # This alters the precedence of arithmetic operators to be more like C + # and other programming languages; the section ARITHMETIC EVALUATION + # in zshmisc(1) has an explicit list. + setopt C_PRECEDENCES + # Shell Emulation ############################################################## # Causes field splitting to be performed on unquoted parameter expansions. # Note that this option has nothing to do with word splitting.