mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Fixes formatting on some rare cases when a percent ends up
in the $CMD variable, like these below:
- When assigning a variable, $CMD ends up with the second parameter;
in this case, $CMD will contain '+%s%N', messing with the syntax:
$ a=`date +%s%N`
- A function (or command in general) that contains a percent symbol:
$ to\%() { echo $(( $1 * 100 / $3))\% } # $CMD=to%()
$ to% 2 of 10 # $CMD=to%
|
||
|---|---|---|
| .. | ||
| aliases.zsh | ||
| bzr.zsh | ||
| completion.zsh | ||
| correction.zsh | ||
| directories.zsh | ||
| functions.zsh | ||
| git.zsh | ||
| grep.zsh | ||
| history.zsh | ||
| key-bindings.zsh | ||
| misc.zsh | ||
| nvm.zsh | ||
| prompt_info_functions.zsh | ||
| spectrum.zsh | ||
| termsupport.zsh | ||
| theme-and-appearance.zsh | ||