diff options
author | Daniel Tam <danooo.tam@gmail.com> | 2018-02-13 14:18:46 +0300 |
---|---|---|
committer | Daniel Tam <danooo.tam@gmail.com> | 2018-02-13 14:18:46 +0300 |
commit | d1299229f65d81f7fd33629346c8c6570700c11d (patch) | |
tree | 274151533ce2faf2b633bc79b8fe223eb20e1eb4 /README.md | |
parent | eb1c6ec1fc6ac9310b815296dd791fe798ec74a8 (diff) | |
parent | 3da37c0eaf1ae2e5949d205b3166cf4499c7d6d0 (diff) |
Merge branch 'segments/dir/absolute-truncation' of github.com:dualscyther/powerlevel9k into segments/dir/absolute-truncation
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -375,6 +375,7 @@ Customizations available are: | Strategy Name | Description | |---------------|-------------| |Default|Truncate whole directories from left. How many is defined by `POWERLEVEL9K_SHORTEN_DIR_LENGTH`| +|`truncate_absolute_chars`|Truncates an absolute number of characters from the left such that the number of characters that your path displays (including `POWERLEVEL9K_SHORTEN_DELIMITER`) is no more than `POWERLEVEL9K_SHORTEN_DIR_LENGTH`.| |`truncate_middle`|Truncates the middle part of a folder. E.g. you are in a folder named `~/MySuperProjects/AwesomeFiles/BoringOffice`, then it will truncated to `~/MyS..cts/Awe..les/BoringOffice`, if `POWERLEVEL9K_SHORTEN_DIR_LENGTH=3` is also set (controls the amount of characters to be left).| |`truncate_from_right`|Just leaves the beginning of a folder name untouched. E.g. your folders will be truncated like so: "/ro../Pr../office". How many characters will be untouched is controlled by `POWERLEVEL9K_SHORTEN_DIR_LENGTH`.| |`truncate_with_package_name`|Search for a `package.json` or `composer.json` and prints the `name` field to abbreviate the directory path. The precedence and/or files could be set by `POWERLEVEL9K_DIR_PACKAGE_FILES=(package.json composer.json)`. If you have [jq](https://stedolan.github.io/jq/) installed, it will dramatically improve the speed of this strategy.| |