summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 41e00402..1e5c1169 100644
--- a/README.md
+++ b/README.md
@@ -278,6 +278,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 the middle part
+ POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"
+ # truncate from right, leaving the first X characters untouched
+ POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
+ # default behaviour is to truncate whole directories
+
+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,