mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-14 02:09:10 +00:00
Prefer evaluation over test for arithmetic expression
Usage of `(( ... ))` over `[[ ... ]]` is preferred for arithmetic expression since the former is less error prone. Also, unset local variable whenever possible.
This commit is contained in:
committed by
Kaleb Elwert
parent
e3520b737f
commit
3f99519021
@@ -30,6 +30,7 @@ there are a number of additional things to keep in mind.
|
||||
|
||||
- Local variables should be used whenever possible.
|
||||
- Prefer `zstyle` over environment variables for configuration.
|
||||
- Prefer (( ... )) over [[ ... ]] for arithmetic expression.
|
||||
- Use the function keyword to define functions.
|
||||
- The 80 character hard limit can be waved for readability.
|
||||
|
||||
|
Reference in New Issue
Block a user