aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2026-04-07 23:36:52 +0500
committerAnton Bobov <anton@bobov.name>2026-04-16 16:33:30 +0500
commit35db63fd29ad379a6fd4765aa80610feb6ec661c (patch)
tree46961edb687f5bfcdb7593184121977ce04f5cea
parent045276ed7d4462e32b43220418b2acf846b96950 (diff)
zsh: add OverlayFS prompt indicator for Raspberry Pi setups
-rw-r--r--files/.zsh/rc/S50_raspberry_pi17
1 files changed, 17 insertions, 0 deletions
diff --git a/files/.zsh/rc/S50_raspberry_pi b/files/.zsh/rc/S50_raspberry_pi
new file mode 100644
index 0000000..791e224
--- /dev/null
+++ b/files/.zsh/rc/S50_raspberry_pi
@@ -0,0 +1,17 @@
+raspberry_overlay_prompt() {
+ if mount | grep -q 'on / type overlay'; then
+ REPLY="[OverlayFS] "
+ else
+ REPLY=""
+ fi
+}
+
+grml_theme_add_token raspberry_overlay -i raspberry_overlay_prompt '%F{red}' '%f'
+
+() {
+ local -a items
+ if zstyle -a ':prompt:grml:left:setup' items items; then
+ items[$items[(i)path]]=(raspberry_overlay path)
+ zstyle ':prompt:grml:left:setup' items "${items[@]}"
+ fi
+}