Commit Graph
100 Commits
Author SHA1 Message Date
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
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