summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added truncatePath to utilities.zshChristo Kotze2018-02-192-60/+108
| | | | | | | | | | | | Added `function truncatePath()` to utilities.zsh to take care of truncation. This is pure zsh code, without calls to `sed`. Parameters are: * $1 Path: string - the directory path to be truncated * $2 Length: integer - length to truncate to * $3 Delimiter: string - the delimiter to use * $4 From: string - "right" | "middle". If omited, assumes right. Cleaned up code to use the new function instead.
* Improved truncation codeChristo Kotze2018-02-191-2/+2
|
* Updated truncate_to_uniqueChristo Kotze2018-02-181-2/+3
|
* Updated code for testingChristo Kotze2018-02-181-30/+30
|
* Added / for non-home foldersChristo Kotze2018-02-181-0/+2
|
* Rewrote trunc middle/right to use for loopChristo Kotze2018-02-181-47/+41
|
* Fixed another typo - shouldn't code when sick :pChristo Kotze2018-02-181-1/+1
|
* Fixed typoChristo Kotze2018-02-181-1/+1
|
* Added test for dir_length == trunc_lengthChristo Kotze2018-02-181-1/+1
|
* Updated truncate_from_right testChristo Kotze2018-02-181-3/+2
|
* Changed current_dir - Test Travis responseChristo Kotze2018-02-181-2/+3
|
* Fix issue with SHORTEN_DELIMChristo Kotze2018-02-171-3/+6
| | | | | If `$POWERLEVEL9K_SHORTEN_DELIMITER` is a unicode escape sequence, its length is 6 instead of 1. Added variable to hold actual character(s)
* Updated previous test as Travis still failsChristo Kotze2018-02-171-1/+1
|
* Fixed truncate_from_right to incl length of delimChristo Kotze2018-02-171-11/+11
| | | | | Updated length test to include delimiter length. Added comments
* Accidentally deleted )) which threw an errorChristo Kotze2018-02-171-1/+1
|
* Fixed accidentally truncating current folder tooChristo Kotze2018-02-171-3/+3
|
* Added edge case tests for ~ and /Christo Kotze2018-02-171-34/+43
| | | | Fixed edge cases
* Streamlined dir strategiesChristo Kotze2018-02-171-8/+31
| | | | | Removed sed from `truncate_middle`, `truncate_from_right` and partially from `truncate_with_package_name`
* Added tests for DIR_PATH_SEPARATOR_FOREGROUNDChristo Kotze2018-02-141-5/+29
|
* Updated testBoldRootSubsubdirWorks()Christo Kotze2018-02-141-0/+2
| | | | Forgot to initialize the bolding variable
* Added tests for other folder highlighingChristo Kotze2018-02-141-3/+79
|
* Added test for Home folder highlightingChristo Kotze2018-02-141-0/+12
|
* Updating Travis tests for bold dirChristo Kotze2018-02-142-30/+48
|
* More code cleaning (extra %F calls)Christo Kotze2018-02-141-4/+4
|
* Cleaned up DIR_PATH_HIGHLIGHT codeChristo Kotze2018-02-141-4/+4
| | | | | Removed double call to %F and changed $x variables to ${x} for consistency.
* Explicitly test if DIR_OMIT_FIRST_CHARACTER = trueChristo Kotze2018-02-141-3/+3
| | | | | Changed ${POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER} to "${(L)POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER}" == "true" Lines 876 & 882
* Fixed = instead of == inside [[]] line 865Christo Kotze2018-02-141-1/+1
| | | | | Missed an = inside the test for highlighting the last dir of the working directory. Travis should work now *fingers crossed*
* Parameter substitution instead of dirname/basenameChristo Kotze2018-02-141-4/+8
| | | | | Replaced external calls to `dirname` and `basename` with paramater substitution.
* Updated logic in prompt_dirChristo Kotze2018-02-111-2/+8
| | | | Added a case where there is no last dir foreground, but still bold.
* Renamed $bd to $bldChristo Kotze2018-02-111-4/+4
|
* Attempt to fix Travis errorChristo Kotze2018-02-111-5/+5
|
* Changed testing for bold last dirChristo Kotze2018-02-111-1/+1
|
* Added set_default for bold dir segmentChristo Kotze2018-02-111-0/+1
| | | | Added `set_default POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD false`
* Updated tests for resetting boldChristo Kotze2018-02-112-29/+29
| | | | | Updated tests to include the `%b%K{blue}%F{black}` or similar. TODO: Still have to create a test for a bolded last segment
* Fixed reset bold on last dir missing.Christo Kotze2018-02-111-1/+1
| | | | | Missed the `%b` on making the last dir bold which leaked into the command prompt.
* Last dir bold - missed resetChristo Kotze2018-02-101-1/+1
| | | | | Missed the bold reset code `%b` in the logic, which caused everthing after the last dir to be bold, including the command line entry.
* PROMPT_DIR color/bold on last dir & color for sep.Christo Kotze2018-02-102-8/+34
| | | | | | | You can now set the last dir to have a custom color with `POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND` and whether it will be bold with `POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD=true`. You can also set a custom separator color with `POWERLEVEL9K_DIR_PATH_SEPARATOR_FOREGROUND`.
* Merged `truncate_to_unique` & state `NOT_WRITABLE`Christo Kotze2018-02-101-1/+25
| | | | Added `truncate_to_unique` and `NOT_WRITABLE` to @dritter's code.
* Incorporated @dritter 's changes into nextChristo Kotze2018-02-101-38/+9
| | | | These are the changes made by @dritter on `async_all_the_segments`
* Merge pull request #681 from Stazer/tcolor-warningBen Hilburn2018-01-312-7/+15
|\ | | | | Added flag to ignore checking the term colors & lang settings
| * Minor fix of copy/paste errorBen Hilburn2018-01-311-1/+1
| |
| * added POWERLEVEL9K_IGNORE_TERM_LANG for disabling term_lang checkJustus Flerlage2018-01-071-8/+11
| |
| * renamed POWERLEVEL9K_CHECK_TERM_COLORS to POWERLEVEL9K_IGNORE_TERM_COLORSJustus Flerlage2018-01-072-2/+2
| |
| * Added flag for checking the term colorsJustus Flerlage2018-01-072-0/+5
| |
* | Merge pull request #717 from onaforeignshore/date_segmentBen Hilburn2018-01-243-28/+109
|\ \ | | | | | | Added `prompt_date` and fixed segment comments
| * | Added `prompt_date` to `README.md`Christo Kotze2018-01-051-1/+10
| | |
| * | Updates to `functions/icons.zsh`Christo Kotze2018-01-051-0/+10
| | | | | | | | | | | | Added date and time icons
| * | Updates to `prompt_date` and `prompt_time`Christo Kotze2018-01-051-10/+4
| | | | | | | | | | | | | | | Using `set_default` to set the defaults - makes the code shorter and more readable and bypasses errors.
| * | Added `prompt_date` and fixed segment commentsChristo Kotze2018-01-051-23/+91
| | | | | | | | | | | | | | | Added separators for all segments (####) Added descriptions for missing ones
* | | Merge pull request #726 from docwhat/pr/getColor-ignores-numbersBen Hilburn2018-01-241-1/+1
|\ \ \ | |_|/ |/| | getColor() must always print result