From 919f132cdbb0e79f7d1ccfea91adcc825c669e2a Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Wed, 28 Jul 2021 22:35:56 +0100 Subject: [PATCH] Added function wrapper. --- themes/logicalhacking.zsh-theme | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/logicalhacking.zsh-theme b/themes/logicalhacking.zsh-theme index ecd319c..f2bfec3 100755 --- a/themes/logicalhacking.zsh-theme +++ b/themes/logicalhacking.zsh-theme @@ -33,6 +33,7 @@ # uses changed in 2012, and older versions will display incorrectly, # in confusing ways. +() { if [[ "$TERM" =~ ".*256.*" ]]; then # 0 - 15: System colors (color theme might define up to color 21) # 16 - 231: 6x6x6 color cube, for R, G, B \in {0, ..., 5}: @@ -90,6 +91,7 @@ else LHGOLD="003" LHGREEN="002" fi +} # Generic function for formatting the working directory - in particular, # it allows zpresto-style shortening of the full path.