Commit Graph
100 Commits
Author SHA1 Message Date
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 d9374412e6 Add default locale to protect the special characters 2017-03-18 17:09:51 +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
Dominik Ritter edb51fcba3 Add tests for command_execution_time segment 2017-02-14 01:25:34 +01:00
Dominik Ritter 0461b56f2a Fix wrong variable name 2017-02-14 01:24:32 +01:00
Dominik Ritter e105118f39 Format command execution time human readable 2017-02-14 00:57:10 +01:00
Dominik Ritter eb18bcaaae Add documentation for command_execution_time segment 2017-02-13 23:41:51 +01:00
Dominik Ritter 04e75a683d Reworked command_execution_time segment
- Add a visual identifier
- Fix a bug that the time was not reset
- Make calculation independent of segment (thx @rjorgenson)
2017-02-13 23:17:04 +01:00
Dominik Ritter 7e5bef14d7 Add command_execution_time segment 2017-02-13 00:56:32 +01:00
Dominik Ritter 6e1259ee99 Remove unnecessary variable from tests 2017-02-13 00:22:29 +01:00
Dominik Ritter f6c65e3cf7 Get rid of unreadable BSU-pattern
Now the current folder in `truncate_with_folder_marker` strategy is
truncated by cutting off the found folder from the beginning of $PWD.
2017-02-13 00:22:22 +01:00
Dominik Ritter a4cb875615 Add documentation about mysterious 'BSUbfksu' pattern 2017-02-12 23:27:16 +01:00
Dominik Ritter 610fd4fbfd Merge branch 'next' into benoits_dir_segment 2017-02-12 18:59:21 +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
Dominik Ritter a8af89eeb7 Fix default dir truncation strategy 2017-02-04 08:51:52 +01:00
Dominik Ritter 268c3247c9 Do path expansion at first 2017-02-03 20:21:53 +01:00
Dominik Ritter ed9d18f1de Add documentation for dir truncation strategies 2017-02-02 00:38:22 +01:00
Dominik Ritter eb865664e4 Add comments to the dir segment 2017-02-02 00:31:04 +01:00
Dominik Ritter 052eba9c74 Rename dir_permissions segment to dir_writable
Additionally:
- Add changelog entry
- Add documentation
2017-01-31 23:57:59 +01:00
Dominik Ritter b379f03f14 Add ability to omit the first character in dir path 2017-01-30 21:10:09 +01:00
Dominik Ritter 52eb313626 Fix theme for use with plain "prompt" command
ZSH has the ability to preview and set themes directly from the `prompt`
builtin. To do so, the theme must be in FPATH and named
"prompt_theme_setup".
2017-01-29 14:34:32 +01:00
Dominik Ritter bfbfd5c10c Fix README entry for renamed variable POWERLEVEL9K_PUBLIC_IP_METHODS 2017-01-28 13:29:08 +01:00
Dominik Ritter 06cb9bb43f Change order of public ip methods as it was before 2017-01-28 13:21:40 +01:00
Dominik Ritter 6c352c8d5c Simplify public_ip segment 2017-01-28 02:47:59 +01:00
Dominik Ritter a576a15759 Fix error with truncating package name if repo is symlinked 2017-01-25 23:48:40 +01:00
Dominik Ritter bcb0fed873 Avoid error if CLOBBER is not set
If the tempfile already exists and CLOBBER is not set, a file exists error occurrs. This commit avoids this problem.
2017-01-24 20:34:11 +01:00
Dominik Ritter b8e18d7108 Fix swift segment
The regex for the swift segment matches too much. Here I simplified it
to match the first number as this is probably the "main" version number.
2017-01-22 01:47:58 +01:00
Dominik Ritter c1cd7a2b08 Add Changelog for v0.5.0 2017-01-08 22:16:01 +01:00
Dominik Ritter 202ab15007 Fix display of custom dir path separator on linux 2016-12-04 18:43:47 +01:00
Dominik Ritter 11b8545fe2 Add syntax highlighting to examples in README 2016-11-29 23:27:00 +01:00
Dominik Ritter 51e1aa1b16 Add documenatation for dir path separator 2016-11-29 23:19:35 +01:00
Dominik Ritter 159938f00e Add changelog entry for dir path separator 2016-11-29 23:05:10 +01:00
Dominik Ritter a1b4d44755 Make path separator configurable for dir prompt
Now the path separator can be configured by setting
`POWERLEVEL9K_DIR_PATH_SEPARATOR`
2016-11-29 22:58:55 +01:00
Dominik Ritter 7a776dc68c Modify dir segment to use proper states 2016-11-29 22:35:50 +01:00
Dominik Ritter 47879f4b7b Refactor location installation path code
Now it is possible to set the installation path by setting
POWERLEVEL9K_INSTALLATION_PATH. If set, this path will always be used.
If it was not set manually, we try to determine the path automatically.
2016-05-24 02:31:52 +02:00
Dominik Ritter 24fac49050 Changelog: Remove tag "next" for version 0.4.0 2016-04-21 01:55:55 +02:00
Dominik Ritter ffd114f1fc Changelog: Add a note about TravisCI 2016-04-21 01:55:30 +02:00
Dominik Ritter 6af098a709 Changelog: Add a note about vcs untracked state 2016-04-21 01:53:27 +02:00
Dominik Ritter 72e0274a08 Changelog: Add a note about rbenv segment 2016-04-21 01:41:16 +02:00
Dominik Ritter f5fe890df4 Changelog: Add a note about swap segment 2016-04-21 01:34:31 +02:00
Dominik Ritter f2e31fd59a Changelog: Reformat; first changes then additions 2016-04-21 01:32:00 +02:00
Dominik Ritter feec4215c7 Changelog: Reformat; first changes then additions 2016-04-20 18:39:18 +02:00
Dominik Ritter 05736a7ba1 Changelog: Add entry about new nodeenv segment 2016-04-20 18:39:17 +02:00
Dominik Ritter 6f66381c9d Changelog: Fix name for docker_machine segment 2016-04-20 18:39:17 +02:00
Dominik Ritter 96bc96a465 Changelog: Add a note about the changed shorten delimiter 2016-04-20 18:39:17 +02:00
Dominik Ritter 9b87ec6a22 Changelog: Update headlines for better readability 2016-04-20 18:39:17 +02:00
Dominik Ritter aba5e69cf1 Changelog: Add entry for new anaconda segment 2016-04-20 18:39:17 +02:00
Dominik Ritter 5026a546fb Changelog: Add a note about obsolete variables
The variables `POWERLEVEL9K_VCS_FOREGROUND` and
`POWERLEVEL9K_VCS_DARK_FOREGROUND` are no longer used.
2016-04-20 18:39:06 +02:00
Dominik Ritter 7b2e995299 Fix truncation of changeset in detached tag mode 2016-04-17 18:03:31 +02:00
Dominik Ritter 104e774873 Fix configurability of actionformat color 2016-04-03 19:13:58 +02:00
Dominik Ritter fa33902c00 Fix test 2016-02-26 17:29:00 +01:00
Dominik Ritter cb5d33affb Fix untracked state of the vcs segment 2016-02-26 15:53:14 +01:00
Dominik Ritter 3591099789 Add tests for dynamic color overriding of vcs segment 2016-02-26 15:53:09 +01:00
Dominik Ritter 9ac79bd3aa Rename VCS default state to clean 2016-02-26 15:33:04 +01:00
Dominik Ritter e9953710f7 Clean up states in VCS segment 2016-02-26 13:51:39 +01:00
Dominik Ritter a1ef6548d5 Fix dynamic coloring of VCS segment
The VCS segment had a lot of own color definitions. Now they are all
gone, so that the only color definitions are when the segment gets
printed.
2016-02-18 18:27:32 +01:00
Dominik Ritter 7efc6e4187 Fix go test
If no GO is available, there should be no output.
2016-02-17 18:41:46 +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 34bf1f0bf5 Add documentation for Unit Tests 2016-02-13 21:49:34 +01:00
Dominik Ritter 0d8c05ecb7 Run tests on trusty, where ZSH 5.0.2 is available 2016-02-13 19:54:31 +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 d7a0f49391 Add documentation for printSizeHumanReadable 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 be0dce7ff6 Load submodules from HTTPS 2016-02-12 01:18:35 +01:00
Dominik Ritter ded4653bf2 Install ZSH on Travis-CI 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
Dominik Ritter e9da3d5146 Fix joining segments 2016-02-06 20:07:42 +01:00
Dominik Ritter 54254600d1 Change default dir truncation delimitor to ellipsis 2016-02-03 22:35:14 +01:00
Dominik Ritter 15665a4f95 Joining conditional segments now work as expected. If between the last
printed segment is a full but conditional segment, the joined one gets
promoted.
This fixes #186
2016-01-23 01:45:39 +01:00
Dominik Ritter ed28b8d26f Use explicit word splitting. No need to set SH_WORD_SPLIT 2016-01-23 01:45:39 +01:00
Dominik Ritter cd78c66997 First try: Now joined segments are promoted to "full" segments, if their
predecessor was conditional and had no output.
2016-01-23 01:45:39 +01:00