Commit Graph
100 Commits
Author SHA1 Message Date
Dominik Ritter bf9082bea9 Fix bug so that the segment separator of left middle has the right color
In short: the current background color was the unfiltered color and is
used to print the next segment separator. If the user set a color like
"purple3" that would result in a white segment separator as Terminal
Emulators do not understand the color "purple3".
2018-08-07 21:25:06 +02:00
Dominik Ritter ebbdb3c1c0 Make purpose clear of backgroundColor and foregroundColor functions
The functions just start the colors, they do not end them. It seems
too much to have a function that terminates a color.
2018-08-07 21:21:15 +02:00
Dominik Ritter 345cf87b8f Add missing colors to fix color comparison
Added magenta and cyan that were only present with their alternative
names (fuchsia and aqua). See https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme
2018-07-24 00:51:37 +02:00
Dominik Ritter d502d05f08 Add tests for status segment 2018-07-13 00:41:35 +02:00
Dominik Ritter 8cd39beaad FIx status segment 2018-07-12 08:13:52 +02:00
Dominik Ritter d1fc86e598 Add new states to context segment in README 2018-07-12 00:37:54 +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
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