Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | | Added truncatePath to utilities.zsh | Christo Kotze | 2018-02-19 | 1 | -60/+33 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 code | Christo Kotze | 2018-02-19 | 1 | -2/+2 | |
| | | | | | ||||||
| * | | | | Updated truncate_to_unique | Christo Kotze | 2018-02-18 | 1 | -2/+3 | |
| | | | | | ||||||
| * | | | | Updated code for testing | Christo Kotze | 2018-02-18 | 1 | -30/+30 | |
| | | | | | ||||||
| * | | | | Added / for non-home folders | Christo Kotze | 2018-02-18 | 1 | -0/+2 | |
| | | | | | ||||||
| * | | | | Rewrote trunc middle/right to use for loop | Christo Kotze | 2018-02-18 | 1 | -47/+41 | |
| | | | | | ||||||
| * | | | | Fixed another typo - shouldn't code when sick :p | Christo Kotze | 2018-02-18 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Fixed typo | Christo Kotze | 2018-02-18 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Added test for dir_length == trunc_length | Christo Kotze | 2018-02-18 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Updated truncate_from_right test | Christo Kotze | 2018-02-18 | 1 | -3/+2 | |
| | | | | | ||||||
| * | | | | Changed current_dir - Test Travis response | Christo Kotze | 2018-02-18 | 1 | -2/+3 | |
| | | | | | ||||||
| * | | | | Fix issue with SHORTEN_DELIM | Christo Kotze | 2018-02-17 | 1 | -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 fails | Christo Kotze | 2018-02-17 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Fixed truncate_from_right to incl length of delim | Christo Kotze | 2018-02-17 | 1 | -11/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Updated length test to include delimiter length. Added comments | |||||
| * | | | | Accidentally deleted )) which threw an error | Christo Kotze | 2018-02-17 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Fixed accidentally truncating current folder too | Christo Kotze | 2018-02-17 | 1 | -3/+3 | |
| | | | | | ||||||
| * | | | | Added edge case tests for ~ and / | Christo Kotze | 2018-02-17 | 1 | -34/+43 | |
| | | | | | | | | | | | | | | | | | | | | Fixed edge cases | |||||
| * | | | | Streamlined dir strategies | Christo Kotze | 2018-02-17 | 1 | -8/+31 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Removed sed from `truncate_middle`, `truncate_from_right` and partially from `truncate_with_package_name` | |||||
| * | | | | More code cleaning (extra %F calls) | Christo Kotze | 2018-02-14 | 1 | -4/+4 | |
| | | | | | ||||||
| * | | | | Cleaned up DIR_PATH_HIGHLIGHT code | Christo Kotze | 2018-02-14 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Removed double call to %F and changed $x variables to ${x} for consistency. | |||||
| * | | | | Explicitly test if DIR_OMIT_FIRST_CHARACTER = true | Christo Kotze | 2018-02-14 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Changed ${POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER} to "${(L)POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER}" == "true" Lines 876 & 882 | |||||
| * | | | | Fixed = instead of == inside [[]] line 865 | Christo Kotze | 2018-02-14 | 1 | -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/basename | Christo Kotze | 2018-02-14 | 1 | -4/+8 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Replaced external calls to `dirname` and `basename` with paramater substitution. | |||||
| * | | | | Updated logic in prompt_dir | Christo Kotze | 2018-02-11 | 1 | -2/+8 | |
| | | | | | | | | | | | | | | | | | | | | Added a case where there is no last dir foreground, but still bold. | |||||
| * | | | | Renamed $bd to $bld | Christo Kotze | 2018-02-11 | 1 | -4/+4 | |
| | | | | | ||||||
| * | | | | Attempt to fix Travis error | Christo Kotze | 2018-02-11 | 1 | -5/+5 | |
| | | | | | ||||||
| * | | | | Changed testing for bold last dir | Christo Kotze | 2018-02-11 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Added set_default for bold dir segment | Christo Kotze | 2018-02-11 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | Added `set_default POWERLEVEL9K_DIR_PATH_HIGHLIGHT_BOLD false` | |||||
| * | | | | Fixed reset bold on last dir missing. | Christo Kotze | 2018-02-11 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Missed the `%b` on making the last dir bold which leaked into the command prompt. | |||||
| * | | | | Last dir bold - missed reset | Christo Kotze | 2018-02-10 | 1 | -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 Kotze | 2018-02-10 | 1 | -8/+30 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Kotze | 2018-02-10 | 1 | -1/+25 | |
| | | | | | | | | | | | | | | | | | | | | Added `truncate_to_unique` and `NOT_WRITABLE` to @dritter's code. | |||||
| * | | | | Incorporated @dritter 's changes into next | Christo Kotze | 2018-02-10 | 1 | -38/+9 | |
| | | | | | | | | | | | | | | | | | | | | These are the changes made by @dritter on `async_all_the_segments` | |||||
* | | | | | Merge branch 'next' into newline-count | Ben Hilburn | 2018-03-07 | 1 | -6/+40 | |
|\ \ \ \ \ | ||||||
| * \ \ \ \ | Merge pull request #729 from Mikewl/usersudo | Ben Hilburn | 2018-03-07 | 1 | -4/+20 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | Added sudo state to prompt_user | |||||
| | * | | | | | add new icons and add remote_sudo | Michael Louwrens | 2018-02-12 | 1 | -5/+10 | |
| | | | | | | | ||||||
| | * | | | | | try out sudo icon changes | Michael Louwrens | 2018-02-10 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | fix typo | Michael Louwrens | 2018-02-10 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | change sudo detection method | Michael Louwrens | 2018-02-10 | 1 | -2/+2 | |
| | | | | | | | ||||||
| | * | | | | | add sudo status to context and user prompts | Michael Louwrens | 2018-02-10 | 1 | -0/+11 | |
| | |/ / / / | ||||||
| * | | | | | Merge pull request #736 from dualscyther/segments/dir/absolute-truncation | Ben Hilburn | 2018-03-07 | 1 | -0/+5 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | Add absolute truncation option to dir segment | |||||
| | * | | | | | Refactor absolute char truncation | Daniel Tam | 2018-02-13 | 1 | -3/+1 | |
| | | | | | | | ||||||
| | * | | | | | Add absolute truncation option to dir segment | Daniel Tam | 2018-02-03 | 1 | -0/+7 | |
| | |/ / / / | ||||||
| * | | | | | Merge pull request #743 from onaforeignshore/iterm2_integration | Ben Hilburn | 2018-03-07 | 1 | -0/+3 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | Fix iTerm2 integration with PowerLevel9k | |||||
| | * | | | | | Fix iTerm2 integration with PowerLevel9k | Christo Kotze | 2018-02-10 | 1 | -0/+3 | |
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | This fix allows the user to see the "little blue triangle" that is created when iTerm2 shell integration is enabled. | |||||
| * | | | | | Merge branch 'next' into master | Ben Hilburn | 2018-03-07 | 1 | -90/+192 | |
| |\ \ \ \ \ | ||||||
| | * \ \ \ \ | Merge branch 'master' into next | Ben Hilburn | 2018-03-07 | 1 | -2/+2 | |
| | |\ \ \ \ \ | | | |/ / / / | | |/| / / / | | | |/ / / | ||||||
| * | | | | | Don't show segment if POWERLEVEL9K_VI_INSERT_MODE_STRING == '' | Matthew Hoener | 2018-02-08 | 1 | -0/+1 | |
| | | | | | | ||||||
| * | | | | | Fix vi mode plugin | Matthew Hoener | 2018-02-08 | 1 | -0/+7 | |
| | |/ / / | |/| | | | ||||||
| * | | | | fix: Remove dependency of bc for load widget | LeMarsu | 2018-01-15 | 1 | -2/+2 | |
| | | | | |