Commit Graph

1909 Commits (4b273dd7454ccc01d70753eefdec8c591383f452)
 

Author SHA1 Message Date
Dominik Ritter 6e78f7e793 Merge remote-tracking branch 'eloo/master' into prepare_066 6 years ago
Joseph Weigl 34bf8edc89
Add fallback icon for linux distros 6 years ago
Dominik Ritter 2700cb46f5 Merge remote-tracking branch 'docwhat/pr/sudo-check' into prepare_066 6 years ago
Christian Höltje 3fb0383956 Use SUDO_COMMAND to check for sudo
`sudo -n true` only checks that we _could_ use `sudo`, not if we are in
a sudo session.

closes #852
6 years ago
Dominik Ritter 7a1319c2d9 Add tests for color comparisons with none colors 6 years ago
Dominik Ritter 6daef84c60 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter 52ce9930bb Fix foreground colors in right prompt segments 6 years ago
Dominik Ritter a0d57bc455 Add test for bright colors 6 years ago
Dominik Ritter e0630d7573 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter ef5f9bb1b4 Fix tests 6 years ago
Dominik Ritter 27fe2c6571 Make use of helper function in left_end_segment 6 years ago
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 c7e543ff23 Merge branch 'fix_colors' into prepare_066 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 e35f7a0c48 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter 8beff9fee6 Merge remote-tracking branch 'JulienPivard/transparent_back_fix' into prepare_066 6 years ago
Dominik Ritter 3c57e4a571 Merge branch 'fix_debug_fonts' into prepare_066 6 years ago
Dominik Ritter 673e029152 Merge remote-tracking branch 'xufab/master' into prepare_066 6 years ago
Dominik Ritter e027a8510d Merge remote-tracking branch 'docwhat/pr/fix-test-in-docker-on-newer-zsh' into prepare_066 6 years ago
Dominik Ritter 3b8f0abdb2 Merge remote-tracking branch 'docwhat/pr/sudo-check' into prepare_066 6 years ago
Dominik Ritter aca20ae463 Merge branch 'add_tests' into prepare_066 6 years ago
Dominik Ritter ba353caa98 Fix tests for context segment 6 years ago
Dominik Ritter 3c991f902c Make Travis use XCode9.4 6 years ago
Dominik Ritter e7cbcc5187 Fix tests 6 years ago
Dominik Ritter 81fd69ae98 Update shunit2 to newest version 6 years ago
Christian Höltje 7f6ac8dbac Use SUDO_COMMAND to check for sudo
`sudo -n true` only checks that we _could_ use `sudo`, not if we are in
a sudo session.

closes #852
6 years ago
Dominik Ritter 518148383e Fix Test for context segment
This fixes an error on travis, because there is no sudo allowed. We
could allow it, but I think it is better to mock sudo anyway.
7 years ago
Dominik Ritter 3b0397d1a6 Fix test for background_jobs segment 7 years ago
Dominik Ritter 06de83cc0f Prepare tests for performance optimizations 7 years ago
Dominik Ritter 99f0eddd62 Add tests for nerdfont-complete icons 7 years ago
Dominik Ritter 4972f0b8eb Improve tests by making use of local variables 7 years ago
Dominik Ritter 822b820a6e Improve guide for testing 7 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
xufab acaf8c6087
Missing `etc` state for the `dir` segment in docs 7 years ago
Ben Hilburn 571a859413
Merge pull request #912 from brandon14/laravel_pormpt_fix
[Bugfix] Fix error in laravel_version when artisan is not present
7 years ago
Brandon Clothier 9739c68894
Missed a parenthesis here. 7 years ago
Dominik Ritter ebd4414c29 Fix trimming of whitespace in debug/font-issues.zsh 7 years ago
Dominik Ritter f89a5bb365 Fix debug/font-issues.zsh
- Add trim function
- Make our $OS and neofetchs $os compatible
7 years ago