chiark / gitweb /
dot/zshrc: Write numbers in odd bases using C notation.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:53:20 +0000 (12:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:53:20 +0000 (12:53 +0100)
Otherwise other programs which see this output get confused.  It doesn't
help that `zsh' sets the output base from the initial input base.

dot/zshrc

index ca76ee43dd2f7a7e747815b9bc874205fcd45e85..c6cfa9960e1c96ef7761bd9bf4095a69ad9efc61 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -149,6 +149,7 @@ unsetopt auto_menu
 setopt bang_hist
 unsetopt bash_auto_list
 unsetopt beep
+setopt c_bases octal_zeroes
 setopt extendedglob
 unsetopt flow_control
 unsetopt global_export