Skip to content

Conversation

@MPLew-is
Copy link

@MPLew-is MPLew-is commented Dec 1, 2020

  • Fixes some variable quoting issues that would cause code intended for zsh to be used under bash (2f0bc8c)
  • Allows bash to actually source the script, since the &! syntax by itself causes a parsing error (f02362a)
  • Allows evaluation of ${GIT_BRANCH} under zsh, since the security fix in [security] Fix for #310 magicmonty/bash-git-prompt#313 breaks that (4bb7adb)
    • zsh (at least the version I'm using, 5.8) does not seem to be vulnerable to the same issue without the security fix, as tested using the same instructions as in the original PR

vitaly-zdanevich and others added 30 commits July 26, 2022 14:31
README: remove spaces that increase horisontal scroll
Make username and host colors the same. I have no idea why I made them
different in the first place.

Tighten spacing.

Change "@" char to bold bright white.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This theme is based on Solarized_UserHost and my posh-git theme for
PowerShell which is here:

https://github.com/rkitover/windows-dev-guide#set-up-powershell-profile

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
When deciding what bits of output should be included in the status line,
the variables that configure this aren't exported, which means any
relevant configuration changes don't work.

Fixes magicmonty#474.
Allows git status take the global core.excludesFile into account.
Otherwise, the reported number of untracked files is incorrect.
Clean up whitespace, fix source URL, license.
Additional fix when ${GIT_PROMPT_PREFIX} or ${GIT_PROMPT_SUFFIX}
contain color sequences git_prompt_help's formatting was wrong
Add space after the dot in staged indicator
…n termux)

Private index was tried to create in nonexistent location, no error
was ever displayed, and then unconditionally GIT_INDEX_FILE variable
was set pointing to nonexistent path. Git used this location and
reported many changed files.

It is common on Android devices - there is no /tmp directory
Termux creates one and sets TMPDIR variable, which is commonly
honored by most of unix utilities.

Fixes issue magicmonty#338 - Fixes behaviour if `/tmp` dir does not exist
Additionally in case of nonexistent index file (i.e. when `/tmp`
does not exist) most of files were marked with 'D' in second loop
pass of `gitstatus.sh` which was wrongly identified as 'Stashed'.

Now it is idenified as 'changed'
The longer the directory structure, the more convenient and useful is a
new-line.
norbertszivos and others added 9 commits October 27, 2022 11:25
* It has three styles of prompt.
* It is configurable
  * the visible sections and the order of the sections,
  * where to show icons.
* This theme is not using most of the old configuration variables, it
  has new ones.

To use this new version of the theme, please read the theme
documentation.
- Use added `NewLine` variable for zsh-specific newline
- `Time12a` variant added for zsh
Without quotes, the test will succeed even when the variable is not defined.
The use of zsh `&!` syntax was causing bash to die in script parsing, even though this never gets executed. This adds `true` as a dummy command to get past parsing and allow both bash and zsh to execute the script.
This function was renamed upstream, but the rename was clobbered during rebase.
`==` is only (semi-)portable when used with `[[`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.