Commit Graph

68 Commits (47e2aed4b2d19775b6f495dc6695d1b876aef083)

Author SHA1 Message Date
Dominik Ritter d3500625ca Merge remote-tracking branch 'TheDan64/master' into staging_065
Conflicts were:
- test/segments/rust_version.spec and powerlevel9k.zsh-theme. 
removes grep from parsing the rust version on next;  changes color
names.
Dominik Ritter e763fa14b0 Merge remote-tracking branch 'chhschou/master' into staging_065
Conflicts were:
- powerlevel9k.zsh-theme and test/segments/rust_version.spec:
rust_version Segment changed () on master and colors got
names () on next.
Dominik Ritter 154e923033 Merge remote-tracking branch 'floor114/next' into staging_065
Dominik Ritter 55473c450a Merge branch 'master' into staging_065
Conflicts were:
- README.md: Two commits targeted the brightness table.  from
14. April 2018 on master and  from 05. December 2017 on next.
- powerlevel9k.zsh-theme: Two commits targeted the rbenv segment. Both
achieve the same thing: To show the Ruby version number always.  on
next from 14. April 2018 and  on master from 28. September 2017. I
went with  here as this - although being newer - is the one on
master, and that should be more stable.
Dominik Ritter 27bd1cd65d Fix test for rust segment
Daniel Kolsoi 9b0e0c786a Removed 'Rust' text from test; Silenced missing rustc warning
Taras Shpachenko 111d152d48 Add vcs branch name truncating.
Dominik Ritter 83ad5b598e Add test for wrong truncation if switching back to home folder
This happens if a user switches from a subdirectory of $HOME
back to the home folder and truncation strategy is "truncate
folders from left". Then the folder is displayed as .../~

PR: 
Christo Kotze 75a763f901 Updated test for POWERLEVEL9K_DIR_PATH_ABSOLUTE
Christo Kotze ddcdad77a7 Added new variable POWERLEVEL9K_DIR_PATH_ABSOLUTE
If user sets POWERLEVEL9K_DIR_PATH_ABSOLUTE to true, uses absolute paths
instead of home folder abbreviation, e.g. /Users/chris/... instead of
~/...
Christo Kotze 3674af1cd9 Updated dir.spec test for first_and_last
Christo Kotze 08432bf70c Added truncate_to_first_and_last strategy
Truncate middle directories from the path. How many directories will be
untouched is controlled by POWERLEVEL9K_SHORTER_DIR_LENGTH.
Christo Kotze 1abb519f59 Updated dir.spec tests
Christo Kotze 1e29203563 Removed final SEDs and more comments
Christo Kotze 441fb277d9 Comments, trunc_to_last, trunc_absolute
Added comments throughout the code
Added `truncate_to_last` - displays only the current folder
Added `truncate_absolute` - displays only the last
POWERLEVEL9K_SHORTER_DIR_LENGTH characters - see 
Christo Kotze 4fc4d15703 Added tests for DIR_PATH_SEPARATOR_FOREGROUND
Christo Kotze 276bc9017c Updated testBoldRootSubsubdirWorks()
Forgot to initialize the bolding variable
Christo Kotze dba80dbee9 Added tests for other folder highlighing
Christo Kotze 1e54872873 Added test for Home folder highlighting
Christo Kotze b6f20d1032 Updating Travis tests for bold dir
Christo Kotze 69e55a30b3 Updated tests for resetting bold
Updated tests to include the `%b%K{blue}%F{black}` or similar.
TODO: Still have to create a test for a bolded last segment
Charles Peterson 6bbff45bce orange stuff -- 208
Ben Hilburn 3d79ca1adc
Merge pull request from Artistan/color_names
Use color names, plus fixes
Charles Peterson 264897a426 color names and fixes
- fix for packageName truncated by POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER
     - processing the pwd/HOME replacement ONCE.
     - fix tests for named colors
     - use color names by default to allow dark/light themes to adjust colors based on names
Derek Bassett 1c2774f592 Fix to unit tests. Also removed unneeded extra call to kubectl.
Ben Hilburn 834b6735fa Fixing `vcs.spec` tests after adding space.
Chris Chou 5657fe6ac7 : Indicate `Rust` or `(rust)` for rust_version segment only if icon is unavailable
Ben Hilburn 9f4faf7f21 Merge pull request from eumiro/truncate_to_unique
Add TRUNCATE_TO_UNIQUE shortening dir strategy
Ben Hilburn 02332d5962 Merge branch 'master' into next
Miroslav Šedivý 73a9ee7c87 add TRUNCATE_TO_UNIQUE shortening dir strategy
This creates the shortest unique path elements that can be unambiguously expanded to the original path.
Ben Hilburn c69d45cdcc Merge pull request from docwhat/pr/home-folder-abbr-test
Added tests and replaced a sed call
Christian Höltje 8626d07d60 Merge remote-tracking branch 'origin/master' into pr/merge-master
Christian Höltje 0fded47ab5 Added test for POWERLEVEL9K_HOME_FOLDER_ABBREVIATION
Dominik Ritter a234636982 Fix empty delimiter
Even if the delimiter is empty, the min length should be 1.
This fixes 
Jason Hutchinson d2ecb38d60 add tests
Jason Hutchinson f81ecc11f6 set GO_ICON manually in test
Jason Hutchinson a6887eb165 update test
Jason Hutchinson 55cf15ac41 test that go_segment prints nothing if GOPATH is not set
Jason Hutchinson 0519384d57 test that go_segment prints nothing if GOPATH is set but is not a subset of PWD
Jason Hutchinson ac3307400d update go mock to allow for both version and env sub-commands
Jason Hutchinson 192d634e08 ensure go_version segment prints if PWD is subset of non-empty GOPATH
Dominik Ritter 56af9bb3c3 Fix tests on TravisCI
TravisCI runs ubuntu 14.04 which has ZSH 5.0.2 on it.
Dominik Ritter 5b266c7a13 Add tests to ensure all icon keys are set in all modes
This tests do compare icons from all modes (except for flat and
compatible) with all other modes.
Dominik Ritter 41d92371ae Add tests for setting the right locale in icons.zsh
Dominik Ritter 44eaa0ef33 Add tests for `truncate_with_package_name` strategy of dir segment
This is a backport from 
Ben Hilburn 2f387376aa unittest: fixing space after branch indicator
Dominik Ritter 875dec5dae Merge branch 'next' into execution_time
Dominik Ritter a202537dd7 Refactor `command_execution_time` segment
- Change internal precision to nanoseconds
- Let the user decide about desired precision
- Add tests
Ben Hilburn 36d74f34c2 Merge branch 'next' into dir_first_character
Dominik Ritter edb51fcba3 Add tests for `command_execution_time` segment