Commit Graph
100 Commits
Author SHA1 Message Date
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
Dominik Ritter 1194826ef4 Used the new "visual identifier" concept for the battery segment. 2015-12-15 01:59:46 +01:00
Dominik Ritter 0c528461fb Allow users to overwrite the color for the visual identifier only. 2015-12-15 01:59:46 +01:00
Dominik Ritter 036433dd53 Segments now can have "visual identifiers" which are basically just
special icons.
2015-12-15 01:59:46 +01:00
Dominik Ritter 21f80e4da7 Removed trailing whitespaces. 2015-12-15 01:59:46 +01:00
Dominik Ritter 7151036198 Removed unecessary variable. 2015-12-15 01:59:46 +01:00
Dominik Ritter 5a4de1d274 Split up the status segment into a background_jobs, root_indicator and status segment.
This fixes #163
2015-12-13 12:43:40 +01:00
Dominik Ritter 8c71a28a77 The script location should only be set once! 2015-11-28 19:45:49 +01:00
Dominik Ritter 0dc36ee614 We need to always evaluate the path for the home/folder icon mechanism to work correctly. 2015-11-28 11:11:10 +01:00
Dominik Ritter a09a4b8dd5 Added a folder icon for "awesome-fontconfig" mode. Thx to @tritlo 2015-11-28 10:57:50 +01:00
Dominik Ritter b01588e2f9 File might be a symlink. 2015-11-28 01:56:26 +01:00
Dominik Ritter 46575182c7 Fallback mechanism is now more robust. If does not matter if the user specified a file or a directory in POWERLEVEL9K_INSTALLATION_PATH. 2015-11-28 01:33:33 +01:00
Dominik Ritter 972e24ad41 Added more checks to find the installation dir. Now we try to find prezto automatically and print a nice warning as a fallback. 2015-11-28 01:26:24 +01:00
Dominik Ritter c10bac90ba In Awesome-Mode either print a home-icon or a folder icon, depending in which directory the user is. 2015-11-28 00:03:07 +01:00
Dominik Ritter b8d7d1387e By default: set verbose mode on. 2015-11-25 00:26:10 +01:00
Dominik Ritter 23e2a54067 Added a verbose mode. 2015-11-25 00:21:20 +01:00
Dominik Ritter 323610cebf More structure to the battery segment: Now there is a concept of "states" that a battery can have. That makes the code much clearer and users could adjust the colors of these states as they want. 2015-11-25 00:06:03 +01:00
Dominik Ritter 3437c7850c Battery icon is already defined in the icons-array. 2015-11-24 18:31:22 +01:00
Dominik Ritter c8137fcf1a Pre-Grep the raw data to save some memory and to avoid cluttering up the output of setopt xtrace too much. 2015-11-24 18:17:04 +01:00
Dominik Ritter dad38b0592 Better code structure. 2015-11-24 02:36:37 +01:00
Dominik Ritter da2b8e342e Arithmetics in ZSH 101: If you want to calculate a percentage, multiply the numerator with 100 _before_ the devision. With that method there is no need for hacks to convert the numerator into a float. 2015-11-23 18:10:09 +01:00
Dominik Ritter 239aa29a12 Better use of test flags. 2015-11-23 00:48:59 +01:00
Dominik Ritter 8d72b5eb12 Renamed variable "conn" to "icon_color" 2015-11-23 00:42:15 +01:00
Dominik Ritter b316089c6b Make use of set_default method for better code readability. 2015-11-23 00:12:52 +01:00
Dominik Ritter c0efe9c342 Performance improvement: Avoid aggregation of data over and over again by extracting a local variable. 2015-11-23 00:11:19 +01:00
Dominik Ritter 7774294113 Performance improvement by calculating the battery percentage with zsh. 2015-11-23 00:09:37 +01:00
Dominik Ritter 4b636d226e Renamed variable. 2015-11-22 00:08:43 +01:00
Dominik Ritter 49a3a3e750 The nvm segment should use the standard node icon (rather than defining an own icon). 2015-11-22 00:04:55 +01:00
Dominik Ritter 351dc84320 Fix for the GO version. 2015-11-21 23:20:38 +01:00