Commit graph

10 commits

Author SHA1 Message Date
Marc Cornellà
c90141ed77 fix: escape % characters in git prompts
This patch adds missing % character escaping for custom git prompts
used in a few themes. It also includes escaping for git-prompt.sh.

In combination with CVE-2021-45444, this could allow code execution
when displaying branch information in cloned malicious git repositories.
However, zsh 5.8.1 and newer are largely the default zsh versions, and
on those supported distributions with older zsh versions, the CVE has been
found to be also patched.

For this reason, this doesn't qualify as a security patch, but a
bug fix for proper printing of git branches.
2026-05-28 19:45:47 +02:00
vladislav doster
1d09c6bb0a
style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
AJ Jordan
cd18bce53e
feat(mortalscumbag): show toolbox info (#11884) 2023-09-11 09:31:53 +02:00
Unknown-Guy
f09fed6195 change mortalscumbag to use core git_current_branch (#6965) 2018-07-03 17:37:18 +02:00
nyim
3a7a590862 mortalscumbag add icon showing local branch behind (#4364) 2018-07-01 20:41:52 +02:00
Andrew Janke
9f552130bd Move current_branch() from git plugin to core lib/git.zsh
Fixes #4085: core -> plugin dependency issue.
Rename it to git_current_branch for clarity that it's git-specific.
Update all plugins that were calling it to use new name.
Fix variable leaks by making more variables in lib/git.zsh local.
Have lib/git.zsh use [[ ]] instead of [ ] everywhere.
2015-12-14 20:28:37 -05:00
DanielFGray
00ec11d3c0 ignore any grep aliases that might be defined 2014-11-16 02:47:35 -06:00
Andrei Gorgan
8925cff334 Fix prompt color: Change it back to green 2012-12-03 12:29:45 +02:00
Andrei Gorgan
e096e4041f Print last exit status in mortalscumbag prompt 2012-12-03 12:03:43 +02:00
Michael Andersen
e43dd05a6a Mortal Scumbag Theme 2011-12-29 01:30:43 +01:00