Commit Graph

1506 Commits (6f5827009fa3a39cc04ab205da2da44965d9a00c)
 

Author SHA1 Message Date
Dominik Ritter 6f5827009f Fix colors for visual identifiers
Make the visual identifier color use numerical color codes as well. This
way colors like "purple3" work as visual identifier color.
6 years ago
Dominik Ritter 424d41761d Write comparison with double quotes 6 years ago
Dominik Ritter 057b07b214 Fix tests 6 years ago
Dominik Ritter 39fe5217c6 Pad colors with zeroes 6 years ago
Dominik Ritter e970a021c8 Fix tests 6 years ago
Dominik Ritter 19235b2359 Always use color codes instead of named colors
This Code was to check if the color is supported by the Terminal
Emulator. This is not necessary, if we always use the numerical code.
This makes the code much clearer.
6 years ago
Dominik Ritter beacb0ad35 Fix bright colors
Remove old code that set bright colors equal to normal colors. This code
was ancient and led to bright colors being unusable. The code originates
from 0e37d8ef86.
6 years ago
Dominik Ritter 93324c0600 Improve naming of variables
As a side effect this should improve the performance slightly, as we get
the fore- and background color codes as early as possible, and store the
result, so that we don't have to recalculate the color code all over.
6 years ago
Dominik Ritter 02506893a9 Remove duplicate variable 6 years ago
Dominik Ritter 0acede2fdc Make colors a global array
That way it must not be defined in every function call.
6 years ago
Dominik Ritter eadbd09368 Write comparisons with double equals 6 years ago
Dominik Ritter 9cf76f99a5 Fix bright colors
Remove old code that set bright colors equal to normal colors. This code
was ancient and led to bright colors being unusable. The code originates
from 0e37d8ef86.
6 years ago
Dominik Ritter bf9082bea9 Fix bug so that the segment separator of left middle has the right color
In short: the current background color was the unfiltered color and is
used to print the next segment separator. If the user set a color like
"purple3" that would result in a white segment separator as Terminal
Emulators do not understand the color "purple3".
6 years ago
Dominik Ritter ebbdb3c1c0 Make purpose clear of backgroundColor and foregroundColor functions
The functions just start the colors, they do not end them. It seems
too much to have a function that terminates a color.
6 years ago
Dominik Ritter 345cf87b8f Add missing colors to fix color comparison
Added magenta and cyan that were only present with their alternative
names (fuchsia and aqua). See https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme
7 years ago
Ben Hilburn 22a761208d
Merge pull request #900 from AlexaraWu/patch/pyenv
Fix `pyenv` segment
7 years ago
Alexara Wu 45fe401dc2
Improve conditions in `rbenv` & `pyenv` 7 years ago
Alexara Wu 9f09547ad1
Improve `rbenv` as well 7 years ago
Alexara Wu 25e2064f0e
Improve command check 7 years ago
Ben Hilburn a7b3f310d3
Merge pull request #905 from robobenklein/robobenklein/defined-variable-performance-hotfix
[performance] Defined function 2-20 times speedup
7 years ago
Ben Hilburn e1a420b5d2
Merge pull request #902 from dritter/fix_context_readme
Add new states to context segment in README
7 years ago
Ben Hilburn e95be8f208
Update to `context` segment README
Just some minor spelling fixes.
7 years ago
Ben Hilburn 110a242ad4
Merge pull request #904 from dritter/fix_status
FIx status segment
7 years ago
Dominik Ritter d502d05f08 Add tests for status segment 7 years ago
Ben Klein 45b0d68ec4
Replace `typeset` check with shellvar flag
More performance without changing functionality.
7 years ago
Dominik Ritter 8cd39beaad FIx status segment 7 years ago
Dominik Ritter d1fc86e598 Add new states to context segment in README 7 years ago
Ben Klein 002f7b81a1
Replace [[-v with `defined`
For zsh 5.1 compatibility.
7 years ago
Alexara Wu fc39d9d6b8
Fix `pyenv` segment 7 years ago
Dominik Ritter d031b3e035 Fix kubernetes segment 7 years ago
Ben Hilburn 579887d294 Merge branch 'master' into next 7 years ago
Ben Hilburn 51a8c283e6
Merge pull request #891 from krmcbride/patch-1
kubecontext: fix context, namespace comparison
7 years ago
Ben Hilburn 375d63f1d9
Merge pull request #888 from blackb1rd/Fix_os_detection_for_MSYS2
Fix os detection for MSYS
7 years ago
Ben Hilburn da1e017f14
Merge pull request #886 from dritter/github_templates
Add GitHub templates
7 years ago
Ben Hilburn 626efb2928
Update PR Template
Adding more detail to the PR template first created by @dritter!
7 years ago
Ben Hilburn fcc48e17ee
Updating the Issue Template
Building on the issue template from @dritter.
7 years ago
Kevin McBride 534ec66466
kubecontext: fix context, namespace comparison 7 years ago
blackb1rd 592e765a95 Fix os detection for MSYS2 7 years ago
Ben Hilburn 1db098bd9f Updating CHANGELOG for v0.6.5 7 years ago
Dominik Ritter c951a91579 Add link to troubleshooting guide in issue template 7 years ago
Dominik Ritter cda6ee926c Add github templates for issue reports and new pull requests 7 years ago
Ben Hilburn 348617040b
Merge pull request #859 from dritter/staging_065
Merging the staging branch for 0.6.5!
7 years ago
Dominik Ritter bda3171237 Fix java_version segment 7 years ago
Dominik Ritter 8c0df73d81 Fix tests 7 years ago
Dominik Ritter 08a3801c81 Merge remote-tracking branch 'softmoth/clean-right-margin' into staging_065 7 years ago
Dominik Ritter 595bdb4fa3 Use cog glyph on all modes 7 years ago
Dominik Ritter d09a46f9e0 Mute errors when asking for java version 7 years ago
Tim Smith 3989834bfe Hide one-space indent at right margin
ZSH displays the right prompt indented one space from the right
margin. This can be tweaked with ZLE_RPROMPT_INDENT=0, but that
makes display problems very likely and I don't recommend it. But
all is not lost.

The %E prompt format does continue the current background color
through that last indent space. So it can *look* like our prompt
goes right up to the margin, if:
1) We remove the trailing space from the last segment, and
2) We add %E before clearing the background color
7 years ago
Dominik Ritter b7681a00ca Fix variable in README
- Fix the variable name for the VCS shorten strategy.
- Add a heading for VCS truncation.
7 years ago
Dominik Ritter 51b53cd4b5
Fix `rbenv` segment after merge 7 years ago