<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-sonar, branch 0.2</title>
<subtitle>A heads up display for git</subtitle>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/'/>
<entry>
<title>Merge pull request #11 from michaeldfallen/fix-bash-zero-length</title>
<updated>2015-08-26T13:28:19+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-26T13:28:19+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=1134eac7bd66d099572864b894df566ebd13585d'/>
<id>1134eac7bd66d099572864b894df566ebd13585d</id>
<content type='text'>
Bypass PS1s conversion of \[</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bypass PS1s conversion of \[</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #8 from justinas/master</title>
<updated>2015-08-26T13:26:30+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-26T13:26:30+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=6aeb81d26199815a1518b2aa7aabb4ed80adc3fb'/>
<id>6aeb81d26199815a1518b2aa7aabb4ed80adc3fb</id>
<content type='text'>
Suppress the 'Fatal: not a git repository' errors</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Suppress the 'Fatal: not a git repository' errors</pre>
</div>
</content>
</entry>
<entry>
<title>Bypass PS1s conversion of \[</title>
<updated>2015-08-26T12:39:39+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-26T12:39:39+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=11e8ad4bdce9979eb871635bf455213788de5e05'/>
<id>11e8ad4bdce9979eb871635bf455213788de5e05</id>
<content type='text'>
In PS1 you need to escape non-printing characters, like the color codes.
The standard way is wrapping it in `\[` and `\]`. But for a dynamic
prompt, i.e. one that renders the results of a function every time the
prompt renders, that `\[` will be output as literals.

To fix this we bypass the conversion and wrap our non-printing
characters in the desired characters directly:

`\[` -&gt; `\x01`
`\]` -&gt; `\x02`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In PS1 you need to escape non-printing characters, like the color codes.
The standard way is wrapping it in `\[` and `\]`. But for a dynamic
prompt, i.e. one that renders the results of a function every time the
prompt renders, that `\[` will be output as literals.

To fix this we bypass the conversion and wrap our non-printing
characters in the desired characters directly:

`\[` -&gt; `\x01`
`\]` -&gt; `\x02`
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #7 from eyeofhell/master</title>
<updated>2015-08-26T12:09:11+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-26T12:09:11+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=1faeef884d3660ca4048892fef0ef78997aad821'/>
<id>1faeef884d3660ca4048892fef0ef78997aad821</id>
<content type='text'>
Bash prompt line length fix</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bash prompt line length fix</pre>
</div>
</content>
</entry>
<entry>
<title>Suppress the 'Fatal: not a git repository' errors</title>
<updated>2015-08-26T12:08:28+00:00</updated>
<author>
<name>Justinas Stankevicius</name>
<email>justinas@justinas.me</email>
</author>
<published>2015-08-26T12:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=63ad303e52eeac7dc89b5f28150f0869e62eaf34'/>
<id>63ad303e52eeac7dc89b5f28150f0869e62eaf34</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bash prompt length fix: zero-length chars must be placed between \[ and \], but only for PS1 string</title>
<updated>2015-08-26T11:47:03+00:00</updated>
<author>
<name>Grigory Petrov</name>
<email>grigory.v.p@gmail.com</email>
</author>
<published>2015-08-26T11:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=2cec6490e26d476f354cb1ee2bbef73ab94e8823'/>
<id>2cec6490e26d476f354cb1ee2bbef73ab94e8823</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "bash prompt length fix: zero-length chars must be placed between \[ and \]"</title>
<updated>2015-08-26T11:37:43+00:00</updated>
<author>
<name>Grigory Petrov</name>
<email>grigory.v.p@gmail.com</email>
</author>
<published>2015-08-26T11:37:43+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=637c573f7324538f27cd8a6869193e1364d75e76'/>
<id>637c573f7324538f27cd8a6869193e1364d75e76</id>
<content type='text'>
This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
</pre>
</div>
</content>
</entry>
<entry>
<title>bash prompt length fix: zero-length chars must be placed between \[ and \]</title>
<updated>2015-08-26T11:30:13+00:00</updated>
<author>
<name>Grigory Petrov</name>
<email>grigory.v.p@gmail.com</email>
</author>
<published>2015-08-26T11:30:13+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=0fe65ed830b5d1cdc5189230139b52f4c8aacfbc'/>
<id>0fe65ed830b5d1cdc5189230139b52f4c8aacfbc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Expand the readme slightly</title>
<updated>2015-08-25T16:40:41+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-25T16:40:41+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=a93a5552ccb967cfc3b036e4adcecd78dc22ae0f'/>
<id>a93a5552ccb967cfc3b036e4adcecd78dc22ae0f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Follow symlinks when loading libs</title>
<updated>2015-08-25T16:27:56+00:00</updated>
<author>
<name>Michael Allen</name>
<email>michael@michaelallen.io</email>
</author>
<published>2015-08-25T16:27:56+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/x/git-sonar/commit/?id=81612cb359baac0b476731aff4eb78e04050f857'/>
<id>81612cb359baac0b476731aff4eb78e04050f857</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
