1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 08:01:57 +00:00
Commit graph

1509 commits

Author SHA1 Message Date
Dominik Ritter
52ce9930bb Fix foreground colors in right prompt segments 2018-08-09 23:20:48 +02:00
Dominik Ritter
ef5f9bb1b4 Fix tests 2018-08-08 23:47:01 +02:00
Dominik Ritter
27fe2c6571 Make use of helper function in left_end_segment 2018-08-08 23:36:40 +02:00
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.
2018-08-08 23:18:36 +02:00
Dominik Ritter
424d41761d Write comparison with double quotes 2018-08-08 01:11:44 +02:00
Dominik Ritter
057b07b214 Fix tests 2018-08-08 01:01:14 +02:00
Dominik Ritter
39fe5217c6 Pad colors with zeroes 2018-08-08 01:00:43 +02:00
Dominik Ritter
e970a021c8 Fix tests 2018-08-08 00:42:42 +02:00
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.
2018-08-08 00:40:41 +02:00
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.
2018-08-08 00:40:05 +02:00
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.
2018-08-07 22:00:11 +02:00
Dominik Ritter
02506893a9 Remove duplicate variable 2018-08-07 21:58:32 +02:00
Dominik Ritter
0acede2fdc Make colors a global array
That way it must not be defined in every function call.
2018-08-07 21:36:49 +02:00
Dominik Ritter
eadbd09368 Write comparisons with double equals 2018-08-07 21:35:29 +02:00
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.
2018-08-07 21:33:09 +02:00
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".
2018-08-07 21:25:06 +02:00
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.
2018-08-07 21:21:15 +02:00
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
2018-07-24 00:51:37 +02:00
Ben Hilburn
22a761208d
Merge pull request #900 from AlexaraWu/patch/pyenv
Fix `pyenv` segment
2018-07-16 11:01:00 -04:00
Alexara Wu
45fe401dc2
Improve conditions in rbenv & pyenv 2018-07-14 20:41:15 +08:00
Alexara Wu
9f09547ad1
Improve rbenv as well 2018-07-14 17:09:56 +08:00
Alexara Wu
25e2064f0e
Improve command check 2018-07-14 06:32:07 +08:00
Ben Hilburn
a7b3f310d3
Merge pull request #905 from robobenklein/robobenklein/defined-variable-performance-hotfix
[performance] Defined function 2-20 times speedup
2018-07-13 13:25:45 -04:00
Ben Hilburn
e1a420b5d2
Merge pull request #902 from dritter/fix_context_readme
Add new states to context segment in README
2018-07-13 13:15:41 -04:00
Ben Hilburn
e95be8f208
Update to context segment README
Just some minor spelling fixes.
2018-07-13 13:13:12 -04:00
Ben Hilburn
110a242ad4
Merge pull request #904 from dritter/fix_status
FIx status segment
2018-07-13 13:10:45 -04:00
Dominik Ritter
d502d05f08 Add tests for status segment 2018-07-13 00:41:35 +02:00
Ben Klein
45b0d68ec4
Replace typeset check with shellvar flag
More performance without changing functionality.
2018-07-12 15:37:33 -04:00
Dominik Ritter
8cd39beaad FIx status segment 2018-07-12 08:13:52 +02:00
Dominik Ritter
d1fc86e598 Add new states to context segment in README 2018-07-12 00:37:54 +02:00
Ben Klein
002f7b81a1
Replace [[-v with defined
For zsh 5.1 compatibility.
2018-07-11 16:54:12 -04:00
Alexara Wu
fc39d9d6b8
Fix pyenv segment 2018-07-11 20:55:27 +08:00
Dominik Ritter
d031b3e035 Fix kubernetes segment 2018-07-09 21:30:28 +02:00
Ben Hilburn
579887d294 Merge branch 'master' into next 2018-07-09 09:06:51 -04:00
Ben Hilburn
51a8c283e6
Merge pull request #891 from krmcbride/patch-1
kubecontext: fix context, namespace comparison
2018-07-07 11:22:15 -04:00
Ben Hilburn
375d63f1d9
Merge pull request #888 from blackb1rd/Fix_os_detection_for_MSYS2
Fix os detection for MSYS
2018-07-07 11:19:17 -04:00
Ben Hilburn
da1e017f14
Merge pull request #886 from dritter/github_templates
Add GitHub templates
2018-07-06 10:45:29 -04:00
Ben Hilburn
626efb2928
Update PR Template
Adding more detail to the PR template first created by @dritter!
2018-07-06 10:41:59 -04:00
Ben Hilburn
fcc48e17ee
Updating the Issue Template
Building on the issue template from @dritter.
2018-07-06 10:21:34 -04:00
Kevin McBride
534ec66466
kubecontext: fix context, namespace comparison 2018-07-02 13:33:23 -07:00
blackb1rd
592e765a95 Fix os detection for MSYS2 2018-06-30 22:20:02 +07:00
Ben Hilburn
1db098bd9f Updating CHANGELOG for v0.6.5 2018-06-29 15:41:39 -04:00
Dominik Ritter
c951a91579 Add link to troubleshooting guide in issue template 2018-06-28 23:57:04 +02:00
Dominik Ritter
cda6ee926c Add github templates for issue reports and new pull requests 2018-06-28 23:54:34 +02:00
Ben Hilburn
348617040b
Merge pull request #859 from dritter/staging_065
Merging the staging branch for 0.6.5!
2018-06-25 09:41:54 -04:00
Dominik Ritter
bda3171237 Fix java_version segment 2018-06-20 22:55:14 +02:00
Dominik Ritter
8c0df73d81 Fix tests 2018-06-20 21:44:12 +02:00
Dominik Ritter
08a3801c81 Merge remote-tracking branch 'softmoth/clean-right-margin' into staging_065 2018-06-20 21:23:38 +02:00
Dominik Ritter
595bdb4fa3 Use cog glyph on all modes 2018-06-17 22:57:13 +02:00
Dominik Ritter
d09a46f9e0 Mute errors when asking for java version 2018-06-17 22:47:43 +02:00