Commit Graph

115 Commits

Author SHA1 Message Date
Dominik Ritter 37cbc9a02d Fix RPROMPT placement
This fixes #841
2018-05-26 00:27:36 +02:00
Dominik Ritter 27bd1cd65d Fix test for rust segment 2018-05-12 23:17:49 +02:00
Daniel Kolsoi 9b0e0c786a Removed 'Rust' text from test; Silenced missing rustc warning 2018-05-09 23:37:32 -04:00
Taras Shpachenko 111d152d48 Add vcs branch name truncating. 2018-04-12 18:11:23 +03:00
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: #773
2018-03-20 22:39:20 +01:00
Christo Kotze 75a763f901 Updated test for POWERLEVEL9K_DIR_PATH_ABSOLUTE 2018-02-23 10:12:56 +04:00
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
~/...
2018-02-23 10:08:43 +04:00
Christo Kotze 3674af1cd9 Updated dir.spec test for first_and_last 2018-02-23 09:37:49 +04:00
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.
2018-02-23 09:28:56 +04:00
Christo Kotze 1abb519f59 Updated dir.spec tests 2018-02-23 00:45:00 +04:00
Christo Kotze 1e29203563 Removed final SEDs and more comments 2018-02-23 00:36:12 +04:00
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 #736
2018-02-22 23:34:25 +04:00
Christo Kotze 4fc4d15703 Added tests for DIR_PATH_SEPARATOR_FOREGROUND 2018-02-14 14:17:50 +04:00
Christo Kotze 276bc9017c Updated testBoldRootSubsubdirWorks()
Forgot to initialize the bolding variable
2018-02-14 14:05:49 +04:00
Christo Kotze dba80dbee9 Added tests for other folder highlighing 2018-02-14 13:48:25 +04:00
Christo Kotze 1e54872873 Added test for Home folder highlighting 2018-02-14 13:30:21 +04:00
Christo Kotze b6f20d1032 Updating Travis tests for bold dir 2018-02-14 13:18:35 +04:00
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
2018-02-11 07:40:09 +04:00
Charles Peterson 6bbff45bce orange stuff -- 208 2017-12-15 16:01:50 -06:00
Ben Hilburn 3d79ca1adc
Merge pull request #684 from Artistan/color_names
Use color names, plus fixes
2017-12-04 19:33:57 -05:00
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
2017-11-25 12:46:45 -06:00
Derek Bassett 1c2774f592 Fix to unit tests. Also removed unneeded extra call to kubectl. 2017-10-27 11:55:21 -06:00
Ben Hilburn 834b6735fa Fixing `vcs.spec` tests after adding space. 2017-10-06 22:41:57 -04:00
Chris Chou 5657fe6ac7 #632: Indicate `Rust` or `(rust)` for rust_version segment only if icon is unavailable 2017-10-06 09:47:37 +13:00
Ben Hilburn 9f4faf7f21 Merge pull request #596 from eumiro/truncate_to_unique
Add TRUNCATE_TO_UNIQUE shortening dir strategy
2017-08-12 13:52:10 -04:00
Ben Hilburn 02332d5962 Merge branch 'master' into next 2017-08-12 13:46:08 -04:00
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.
2017-08-11 22:44:18 +02:00
Ben Hilburn c69d45cdcc Merge pull request #569 from docwhat/pr/home-folder-abbr-test
Added tests and replaced a sed call
2017-07-13 11:33:21 -04:00
Christian Höltje 8626d07d60 Merge remote-tracking branch 'origin/master' into pr/merge-master 2017-07-13 00:42:15 -04:00
Christian Höltje 0fded47ab5 Added test for POWERLEVEL9K_HOME_FOLDER_ABBREVIATION 2017-07-12 00:54:30 -04:00
Dominik Ritter a234636982 Fix empty delimiter
Even if the delimiter is empty, the min length should be 1.
This fixes #558
2017-07-12 03:29:31 +02:00
Jason Hutchinson d2ecb38d60 add tests 2017-05-26 14:02:18 -05:00
Jason Hutchinson f81ecc11f6 set GO_ICON manually in test 2017-05-25 17:19:56 -05:00
Jason Hutchinson a6887eb165 update test 2017-05-25 16:59:54 -05:00
Jason Hutchinson 55cf15ac41 test that go_segment prints nothing if GOPATH is not set 2017-04-19 00:12:34 -05:00
Jason Hutchinson 0519384d57 test that go_segment prints nothing if GOPATH is set but is not a subset of PWD 2017-04-19 00:11:54 -05:00
Jason Hutchinson ac3307400d update go mock to allow for both version and env sub-commands 2017-04-19 00:11:02 -05:00
Jason Hutchinson 192d634e08 ensure go_version segment prints if PWD is subset of non-empty GOPATH 2017-04-19 00:09:07 -05:00
Dominik Ritter 56af9bb3c3 Fix tests on TravisCI
TravisCI runs ubuntu 14.04 which has ZSH 5.0.2 on it.
2017-03-20 00:21:49 +01:00
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.
2017-03-20 00:07:35 +01:00
Dominik Ritter 41d92371ae Add tests for setting the right locale in icons.zsh 2017-03-18 20:08:56 +01:00
Dominik Ritter 44eaa0ef33 Add tests for `truncate_with_package_name` strategy of dir segment
This is a backport from #344
2017-03-08 14:57:24 -05:00
Ben Hilburn 2f387376aa unittest: fixing space after branch indicator 2017-03-08 13:43:44 -05:00
Dominik Ritter 875dec5dae Merge branch 'next' into execution_time 2017-02-14 21:42:41 +01:00
Dominik Ritter a202537dd7 Refactor `command_execution_time` segment
- Change internal precision to nanoseconds
- Let the user decide about desired precision
- Add tests
2017-02-14 21:32:41 +01:00
Ben Hilburn 36d74f34c2 Merge branch 'next' into dir_first_character 2017-02-13 20:21:33 -05:00
Dominik Ritter edb51fcba3 Add tests for `command_execution_time` segment 2017-02-14 01:25:34 +01:00
Dominik Ritter 6e1259ee99 Remove unnecessary variable from tests 2017-02-13 00:22:29 +01:00
Dominik Ritter 8e99944797 Add test for truncate_with_folder_marker truncation strategy 2017-02-05 14:53:31 +01:00
Dominik Ritter b6e55c189e Add tests for omitting first character in `dir` segment 2017-02-04 11:46:29 +01:00
Dominik Ritter 3d451499aa Fix tests 2017-02-04 11:46:22 +01:00
Arav Singhal 8d7a4e462a Update test for required behavior 2016-10-27 13:23:22 +05:30
Dominik Ritter fa33902c00 Fix test 2016-02-26 17:29:00 +01:00
Dominik Ritter 3591099789 Add tests for dynamic color overriding of vcs segment 2016-02-26 15:53:09 +01:00
Dominik Ritter 3407494d7d Add tests for `go_version` 2016-02-15 10:19:24 +01:00
Dominik Ritter 490bafc868 Add tests for `rust_version` 2016-02-14 22:52:05 +01:00
Dominik Ritter 7cf46711cc Add tests for the dir segment 2016-02-13 19:23:30 +01:00
Dominik Ritter 4844bbbaea Avoid color warning on travis 2016-02-13 17:41:26 +01:00
Dominik Ritter 9c0b8b9e42 Add test for overwriting icons 2016-02-13 17:37:55 +01:00
Dominik Ritter a3eaf4a4b0 Improve isolation of tests 2016-02-13 17:35:06 +01:00
Dominik Ritter a75b0c17d2 Add tests for visual identifiers 2016-02-13 17:25:03 +01:00
Dominik Ritter 8a386ba1b3 Add tests for functions/colors.zsh 2016-02-12 01:39:42 +01:00
Dominik Ritter c0c611c21d Add tests for functions/utilities.zsh
In particular: `defined`, `set_default`, `getRelevantItem` and
`segmentShouldBeJoined`
2016-02-12 01:18:35 +01:00
Dominik Ritter ca6cbaa0b6 Add unit tests for printSizeHumanReadable 2016-02-12 01:18:35 +01:00
Dominik Ritter 42c39c8922 Add Unit-Tests
Add unittests via shunit2 (https://github.com/kward/shunit2),
that integrate with travis-ci.org.
2016-02-12 01:17:34 +01:00