diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-07-25 02:34:11 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-07-25 02:34:11 +0300 |
commit | 2bc3b09963f34e3f404556100f28b4bf4e904a92 (patch) | |
tree | 94db151a32263ea05a12e2131601c303da216a4d /README.md | |
parent | 925e6752f7261efb031c333e6c1206093760a321 (diff) |
Implemented different ways to truncate the directory path.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -272,6 +272,18 @@ to a certain length: # Limit to the last two folders POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 +To change the way how the current working directory is truncated, just set: + + # truncate whole directories + POWERLEVEL9K_SHORTEN_STRATEGY="complete_directories" + # truncate from right, leaving the first X characters untouched + POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right" + # default behaviour is to truncate the middle part of the directory + +In each case you have to specify the length you want to shorten the directory +to. So in some cases `POWERLEVEL9K_SHORTEN_DIR_LENGTH` means characters, in +others whole directories. + #### The 'time' segment By default the time is show in 'H:M:S' format. If you want to change it, |