Commit Graph
100 Commits
Author SHA1 Message Date
Dominik Ritter ad0c9a6802 Add tests for vcs (git) segment 2018-07-18 22:28:08 +02:00
Dominik Ritter 0d4004ef19 Add tests for todo segment 2018-07-18 22:27:44 +02:00
Dominik Ritter 84f327bd60 Add tests for symfony_version segment 2018-07-18 22:27:23 +02:00
Dominik Ritter 78e03a5fe6 Add tests for swift segment 2018-07-18 22:27:03 +02:00
Dominik Ritter af31b2de9b Add tests for swap segment 2018-07-18 22:26:39 +02:00
Dominik Ritter 7a3aa9d3d1 Change swap segment to take an optional root prefix for testability 2018-07-18 22:26:08 +02:00
Dominik Ritter e51faa0af1 Add tests for ssh segment 2018-07-18 22:25:35 +02:00
Dominik Ritter cc31a05c52 Add test for ram segment 2018-07-18 22:25:06 +02:00
Dominik Ritter e99c7549fb Change ram segment to take an optional root prefix for testability 2018-07-18 22:24:25 +02:00
Dominik Ritter 1e71d452e1 Add tests for public_ip segment 2018-07-18 22:23:32 +02:00
Dominik Ritter e95f84a55d Add tests for php_version segment 2018-07-18 22:23:12 +02:00
Dominik Ritter 084f992fab Add tests for nvm segment 2018-07-18 22:22:17 +02:00
Dominik Ritter 44ec267dfb Add tests for nodeenv segment 2018-07-18 22:21:48 +02:00
Dominik Ritter 85cc62b72b Add tests for node_version segment 2018-07-18 22:21:27 +02:00
Dominik Ritter 2efbd7e188 Add tests for load segment 2018-07-18 22:20:50 +02:00
Dominik Ritter 04168cc5c0 Change load segment to accept an optional root prefix for testability 2018-07-18 22:20:16 +02:00
Dominik Ritter 1cf68e418c Add tests for ip segment 2018-07-18 22:19:14 +02:00
Dominik Ritter 43272410c9 Change ip segment so that the tests can be executed on OSX as well
Change regular expressions to a more compatible format.
2018-07-18 22:17:54 +02:00
Dominik Ritter a757607476 Add tests for disk_usage segment 2018-07-18 22:16:40 +02:00
Dominik Ritter edfd4732f2 Add tests for detect_virt segment 2018-07-18 22:15:57 +02:00
Dominik Ritter b61d021abd Simplify detect_virt segment 2018-07-18 22:15:35 +02:00
Dominik Ritter 829c7ceaae Add tests for custom segment 2018-07-18 22:13:52 +02:00
Dominik Ritter 629d52a7d5 Add visual identifier to custom segments 2018-07-18 22:13:25 +02:00
Dominik Ritter 743ddc1253 Add tests for context segment 2018-07-18 22:11:51 +02:00
Dominik Ritter d9b3edf0e8 Fix go_version test 2018-07-16 22:16:41 +02:00
Dominik Ritter 802af322ff Add tests for battery segment
Additionally
- Add a fourth parameter to prompt_battery for better testability. This
  parameter is the root prefix, so we can use our own test batteries.
2018-07-16 20:48:27 +02:00
Dominik Ritter 74a3d2d6e2 Add tests for background_jobs segment 2018-07-16 20:47:15 +02:00
Dominik Ritter 8c44fa68a2 Add tests for aws_eb_env segment 2018-07-16 20:46:23 +02:00
Dominik Ritter 0e4e9e4256 Add tests for anaconda segment 2018-07-16 20:46:00 +02:00
Dominik Ritter b996ca911e Output running test 2018-07-16 08:21:25 +02:00
Dominik Ritter 21f2d1a377 Test all *.spec files on travis 2018-07-16 07:33:31 +02:00
Dominik Ritter 6c4a3e8a1b Execute tests on various ZSH versions 2018-07-13 01:18:07 +02:00
Dominik Ritter d031b3e035 Fix kubernetes segment 2018-07-09 21:30:28 +02: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
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
Dominik Ritter b7681a00ca Fix variable in README
- Fix the variable name for the VCS shorten strategy.
- Add a heading for VCS truncation.
2018-06-11 21:59:33 +02:00
Dominik Ritter 51b53cd4b5 Fix rbenv segment after merge 2018-06-09 14:37:56 +02:00
Dominik Ritter dc21b97335 Fix travis build 2018-06-07 02:36:30 +02:00
Dominik Ritter 0257159e1e Add tests for laravel version segment to travis 2018-06-07 01:54:32 +02:00
Dominik Ritter a2d8cccd09 Add a Laravel version segment 2018-06-07 01:54:32 +02:00
Dominik Ritter d9d9fb9b6b Merge remote-tracking branch 'ytang/fix-icons-cut-off' into staging_065
Conflicts were:
- test/segments/command_execution_time.spec and
test/segments/go_version.spec: All conflicts come from renaming color
names on next (#703) and adding a whitespace to the Visual Identifier
(#854) on master.
2018-06-07 01:51:16 +02:00
Dominik Ritter 5eedb2586b Merge remote-tracking branch 'Maxattax97/next' into staging_065 2018-06-07 01:31:16 +02:00
Dominik Ritter 40219759bb Merge branch 'fix_rprompt_newline' into staging_065 2018-06-07 01:29:04 +02:00
Dominik Ritter 47e2aed4b2 Merge remote-tracking branch 'sambadevi/feature/etc-option-in-dir-segment' into staging_065 2018-06-07 01:27:15 +02:00
Dominik Ritter db76380563 Merge remote-tracking branch 'sambadevi/feature/hide-battery-segment' into staging_065 2018-06-07 01:25:24 +02:00
Dominik Ritter 3456af3aac Merge remote-tracking branch 'opes/chruby_options' into staging_065 2018-06-07 01:21:16 +02:00
Dominik Ritter d3500625ca Merge remote-tracking branch 'TheDan64/master' into staging_065
Conflicts were:
- test/segments/rust_version.spec and powerlevel9k.zsh-theme. #826
removes grep from parsing the rust version on next; #703 changes color
names.
2018-06-07 01:00:57 +02:00
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 (#641) on master and colors got
names (#703) on next.
2018-06-07 00:44:47 +02:00
Dominik Ritter 4c2f58bdbd Merge remote-tracking branch 'VanRoy/master' into staging_065
Conflicts were:
- functions/icons.zsh: The Java Segment was added on master, but on next
were added various Segments with icons in the meantime.
- powerlevel9k.zsh-theme: Java Segment was added on master, Dropbox
Segment was added on next.
2018-06-07 00:11:15 +02:00
Dominik Ritter 154e923033 Merge remote-tracking branch 'floor114/next' into staging_065 2018-06-06 23:52:15 +02:00
Dominik Ritter 45ae153700 Merge remote-tracking branch 'guicassolato/fix-wrapper-slowness' into staging_065
Conflicts were:
- functions/vcs.zsh: Two commits avoided wrapper behaviour. #685
in grep, #797 in git.
2018-06-06 23:48:11 +02:00
Dominik Ritter 55473c450a Merge branch 'master' into staging_065
Conflicts were:
- README.md: Two commits targeted the brightness table. #781 from
14. April 2018 on master and #684 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. #795 on
next from 14. April 2018 and #610 on master from 28. September 2017. I
went with #795 here as this - although being newer - is the one on
master, and that should be more stable.
2018-06-06 23:40:37 +02:00
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
Dominik Ritter f066dc1cf7 Make _path variable local in anaconda segment 2018-03-28 17:37:50 +02:00
Dominik Ritter 9a895bc7e4 Make variables local 2018-03-27 01:33:21 +02: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
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
Dominik Ritter 3ef7fb35f8 Add a hint for the p9k test folder inside the VMs 2017-03-21 02:09:34 +01:00
Dominik Ritter a4a8afb203 Setup some test folders/repos in the VMs for easier testing 2017-03-21 01:43:24 +01:00
Dominik Ritter 4331ed2dd1 Install more dependencies on travis 2017-03-21 01:42:13 +01:00
Dominik Ritter b2342f90e9 Install more dependencies in VMs 2017-03-21 01:41:47 +01:00
Dominik Ritter 3704b42a54 Fix a problem with redirection in plain.zsh provider 2017-03-21 01:40:31 +01:00
Dominik Ritter 454798a2c4 Fix a little problem in BSD
On BSD ZSH is installed on a different location than on linux. So we
link it there to make sure our later scripts will work.
2017-03-21 01:33:54 +01:00
Dominik Ritter 3832439759 Assume "yes" on installation of ZSH on travis 2017-03-21 01:32:38 +01: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 f89104f68f Improve get_icon_names function
As this function gets more and more important, it now checks for
overrides the user has made and prints these icons instead. At least
unless the first parameter is not set to "original". Then it will print
the default icons.
2017-03-19 17:55:11 +01:00
Dominik Ritter e42cb50052 Sort the output of get_icon_names alphabetically 2017-03-19 17:23:48 +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 d9374412e6 Add default locale to protect the special characters 2017-03-18 17:09:51 +01:00
Dominik Ritter 1ac59158ed Add warn message if XCode is not installed 2017-03-18 11:24:26 +01:00
Dominik Ritter aa26c73521 Add iTerm2 debugging script 2017-03-17 09:06:48 +01:00
Dominik Ritter b9ad552649 Add changelog entry for changed ram segment 2017-03-17 09:03:44 +01:00
Dominik Ritter 4667985871 Add missing changelog entry for font debugger (#433) 2017-03-17 09:01:00 +01:00
Dominik Ritter ef7504354f Beautify output 2017-03-11 12:58:00 +01:00
Dominik Ritter 01681a7387 Add an all right message 2017-03-11 12:55:36 +01:00
Dominik Ritter c30d6108b1 Add font issue debugger script 2017-03-10 02:02:42 +01:00
Dominik Ritter eebd91ec5d Fix changelog formatting 2017-03-09 01:07:22 +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
Dominik Ritter 17671d3ee3 Fix parsing package name from complex package.json files
when using `truncate_with_package_name` strategy.
2017-03-08 14:57:24 -05:00
Dominik Ritter bdb16a81c1 Add some words about the Test-VMs 2017-03-08 00:44:33 +01:00
Dominik Ritter a09d56e3a7 Install git in the BSD-VM 2017-03-08 00:01:40 +01:00
Dominik Ritter 3bb567b45a Set default locale to UTF8 in BSD-VM 2017-03-07 23:47:50 +01:00
Dominik Ritter ead489914f Fix setup for BSD
Mounting folders works in vagrant only with /bin/sh, not with /bin/tcsh
or /bin/csh. And only via NFS or RSync, but not with vfs. But NFS
requires a private network.
2017-03-07 23:42:00 +01:00
Dominik Ritter 65556eba1b Fix problems with BSD-VM
- Set a MAC address
- Set shell to CSH, as there is no Bash on BSD
2017-03-07 23:42:00 +01:00
Dominik Ritter 2b9a57a8ee Add BSD-VM 2017-03-07 23:42:00 +01:00
Dominik Ritter 51296239eb Move plain.sh provisioner to a shared folder 2017-03-07 23:41:53 +01:00
Dominik Ritter ecd180a285 Add changelog entry for truncate with composer.json 2017-02-24 01:38:58 +01:00
Dominik Ritter ec044c028a Add functionality to truncate via composer.json 2017-02-24 01:24:16 +01:00
Dominik Ritter a0aa5ccbfc Fix parsing package name from complex package.json files
when using `truncate_with_package_name` strategy.
2017-02-23 23:30:55 +01:00
Dominik Ritter 4c91c5e02e Add documentation for the command_execution_time segment 2017-02-16 21:11:31 +01:00
Dominik Ritter 875dec5dae Merge branch 'next' into execution_time 2017-02-14 21:42:41 +01:00
Dominik Ritter 674ae068b6 Use GMT as timezone for command_execution_time segment 2017-02-14 21:38:39 +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