1
0
Fork 0
mirror of synced 2024-11-27 01:35:35 -05:00
Commit graph

13 commits

Author SHA1 Message Date
Eric Nielsen
dca1803ced [prompt] Don't expand git_info in eriner theme
to avoid the git-info vulnerability to execute an arbitrary command, as
reported in #158.

Fixes #158 (for eriner theme), Closes #168
2017-04-17 23:17:53 -05:00
Eric Nielsen
d771fd88fb [prompt] Range segment in eriner as in magicmace
This reverts commit eee6e911d2.

As suggested in
https://github.com/Eriner/zim/pull/142#issuecomment-283806756 (and
"thumb-upped" by Tmplt). The Ranger segment was introduced in eriner
theme by Tmplt in https://github.com/Eriner/zim/pull/64. He also added
it to the magicmace theme.
2017-04-17 16:31:07 -05:00
Eric Nielsen
597d611d7b Fix eriner theme errors when git-info not enabled
as it was incorrectly testing for the `${+functions[git-info]}`.

Closes #142
2017-03-08 06:19:56 -08:00
Eric Nielsen
eee6e911d2 Add Ranger segment to eriner theme
instead of having the Ranger indicator at the status segment, likewise
the magicmace theme.
2017-03-08 06:17:39 -08:00
Eric Nielsen
a469e147cc Rewrite eriner theme using the Zim git-info module
Based on my rewrite of the Agnoster theme, uses simpler segment drawing
functions and only relies on local variables. Uses git-info module in
non-verbose mode, so a repo with only untracked files will not count as
dirty (but dirty state is computed faster). Also took the freedom of
adding an extra space character after the 'r' for the Ranger segment,
and after the dirty indicator for the Git segment. Everything else looks
and behaves exactly the same as the original prompt.
2017-03-08 06:17:39 -08:00
Tmplt
5f7a75a969 [prompt] add ranger indicator to eriner theme
closes #64
2016-07-17 08:18:49 -07:00
Matt Hamilton
cb12222811 use 'command git' in prompts
Fixes Zim issue with interation with any functions or aliases that wrap
'git'. See issue #30 for more information.
2016-02-04 15:08:22 -05:00
Matt Hamilton
be23020b2e [prompt] eriner: use short_pwd 2016-01-05 04:15:21 -05:00
Matt Hamilton
b7977d28f2 add powerline symbols note 2015-12-29 11:19:36 -05:00
Matt Hamilton
a08039ca4a add locale safety and user check 2015-12-18 10:11:49 -05:00
Matt Hamilton
66941895f6 update function names in eriner prompt 2015-12-15 21:51:28 -05:00
Matt Hamilton
25cec0876a update eriner prompt 2015-12-15 19:21:06 -05:00
Matt Hamilton
3a62391e0e initial commit 2015-12-15 00:12:17 -05:00