Commit Graph
100 Commits
Author SHA1 Message Date
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
Dominik Ritter 930ae170a4 Made the VCS-hooks customizable. 2016-01-23 01:44:22 +01:00
Dominik Ritter 45184839f3 Added changelog entry. 2016-01-23 01:39:50 +01:00
Dominik Ritter eba3a3ca95 Reworked the AWS Elastic Beanstalk segment. 2016-01-23 01:35:53 +01:00
Dominik Ritter 6763826c4e More space for the Beanstalk-Icon. 2016-01-23 01:34:48 +01:00
Dominik Ritter a6174e31ea Added documentation for the AWS Beanstalk segment. 2016-01-23 01:34:48 +01:00
Dominik Ritter 6aadf76397 Split up ram segment into ram and swap. 2016-01-23 01:27:05 +01:00
Dominik Ritter c379cf2657 Syntax fix. 2016-01-22 19:52:00 +01:00
Dominik Ritter 13b7d26e76 Changelog entries added for 'HOME_SUBFOLDER' state of the dir segment. 2016-01-17 15:05:34 +01:00
Dominik Ritter 01e4e8d324 Added "visual identifier" concept to icons_test segment. 2016-01-17 01:02:03 +01:00
Dominik Ritter 701053aa73 Improved dir icon descriptions. 2016-01-17 01:01:39 +01:00
Dominik Ritter 989a9b3b4b Improved symlink dereferencing on OSX by calling a perl script. 2016-01-09 16:25:15 +01:00
Dominik Ritter 0b27bdc6f5 Comment cleanup. 2016-01-08 20:44:35 +01:00
Dominik Ritter cdf08734db Cleanup of the load segment. 2016-01-08 20:42:06 +01:00
Dominik Ritter d0a76d721c Sorted segments alphabetically. 2016-01-08 20:34:45 +01:00
Dominik Ritter f2b48d4f32 Removed the "next"-tag. 2016-01-08 20:32:14 +01:00
Dominik Ritter 63c2bc6541 Added changelog entries. 2016-01-08 20:24:40 +01:00
Dominik Ritter c8ce226498 Clearer explanation for the home and folder icons. 2016-01-07 22:49:18 +01:00
Dominik Ritter b9cb32f4a7 Removed whitespace before git tag. 2016-01-07 22:17:21 +01:00
Dominik Ritter bbaa4a57f9 The foreground and background instructions are spaceless by default. No
need to make them spaceless explicitly.
2016-01-07 22:09:11 +01:00
Dominik Ritter 1ec2919ff5 Added an explanation for the "home" and "folder" icons. 2016-01-06 19:16:42 +01:00
Dominik Ritter e9ef0429e4 More consistent visual identifiers. Now even segments that just have an
icon as content print these icons as visual identifiers. Some of these
segments have a verbose mode. If this verbose mode is false, some print
just the icon (like the battery segment), which didn't work correctly
before this change.
2015-12-29 13:46:07 +01:00
Dominik Ritter 4e751e9771 Merge branch 'next' into battery_visual_identifier 2015-12-22 20:48:56 +01:00
Dominik Ritter d5a8211aa1 Merge branch 'battery_visual_identifier' of github.com:dritter/powerlevel9k into battery_visual_identifier 2015-12-18 01:07:22 +01:00
Dominik Ritter 2a519ee2d7 Merge branch 'status_color_fix' into battery_visual_identifier 2015-12-18 00:59:04 +01:00
Dominik Ritter ac4502ca1f Added the "visual identifier" concept to the vcs segment. 2015-12-18 00:47:37 +01:00
Dominik Ritter 5cfd800585 Added the "visual identifier" concept to the symfony2_version segment. 2015-12-17 18:24:35 +01:00
Dominik Ritter 045f451e4e Added the "visual identifier" concept to the symfony2_tests and
`rspec_stats` segments.
2015-12-17 18:22:34 +01:00
Dominik Ritter b738ba900c Added the "visual identifiers" concept to the ram segment. 2015-12-17 18:17:06 +01:00
Dominik Ritter 7ed0abebd6 Little VCS segment cleanup. 2015-12-17 10:51:52 +01:00
Dominik Ritter 0cb1c0ffda Changed the order of default segments. 2015-12-17 10:48:11 +01:00
Dominik Ritter f73de77c2e Typo. 2015-12-17 10:40:15 +01:00
Dominik Ritter bd5955221e Removed trailing whitespace. 2015-12-16 22:23:47 +01:00
Dominik Ritter ffa9336144 Remove trailing whitespaces from CHANGELOG. 2015-12-16 20:20:16 +01:00
Dominik Ritter 33d20cb7f2 Added changelog. 2015-12-16 20:19:50 +01:00
Dominik Ritter ad2e4f0bcc Added ability to join segments together. You always join a segment
with the previous one. Just add "_joined" to the segment name in
your `POWERLEVEL9K_LEFT_PROMPT_ELEMENTS`-array.

Developers: Be aware that the order of parameters given to
left/right_prompt_segment has changed!
2015-12-16 19:26:27 +01:00
Dominik Ritter cd5b4d0deb Added the "state" concept to the dir segment. 2015-12-15 03:21:24 +01:00
Dominik Ritter 056d4ff29a Only check for a user defined variable if we really have an visual
identifier.
2015-12-15 02:43:42 +01:00
Dominik Ritter 409303f45d Added the "visual identifier" concept to the rbenv segment. 2015-12-15 02:36:57 +01:00
Dominik Ritter 4fc59fd57c Added the "visual identifier" concept to the node_version segment. 2015-12-15 02:36:02 +01:00
Dominik Ritter 46aafc797a Some icons are visual identifiers now, so they shouldn't control the
margin to the text (which is whitespace).
2015-12-15 02:34:23 +01:00
Dominik Ritter 1d0f47fb97 Bugfix: the default should be a pure color, not a full ZSH color
modifier.
2015-12-15 02:20:11 +01:00
Dominik Ritter 78d22ba309 Interesting: We don't need to swap the whitespaces if the visual
identifier should be rendered on the right side, because the terminal
gets printed from left to right and the double width characters need
their "print me right"-whitespaces on the right side anyways.
2015-12-15 02:08:59 +01:00
Dominik Ritter 6f7d6f7259 For left aligned segments start the foreground color after the visual
identifier has been printed.
2015-12-15 02:08:59 +01:00
Dominik Ritter c5726bc548 Added the "visual identifier" concept to the todo segment. 2015-12-15 02:08:59 +01:00
Dominik Ritter d514b077d0 Added the "visual identifier" concept to the rvm segment. 2015-12-15 02:08:59 +01:00
Dominik Ritter fd0fcba5e9 Added the "visual identifier" concept to the node_version segment. 2015-12-15 02:08:59 +01:00
Dominik Ritter 35b1cb5b8d Added the "visual identifier" concept to the load segment. 2015-12-15 02:02:14 +01:00
Dominik Ritter bb5cca9af7 Added the "visual identifier" concept to the ip segment. 2015-12-15 02:02:14 +01:00
Dominik Ritter d5d5acb490 Added the "visual identifier" concept to the dir segment. 2015-12-15 02:02:14 +01:00
Dominik Ritter e505c0698e Added the "visual identifier" concept to the aws segment. 2015-12-15 01:59:46 +01:00