aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S06_grml_extension
diff options
context:
space:
mode:
Diffstat (limited to 'files/.zsh/rc/S06_grml_extension')
-rw-r--r--files/.zsh/rc/S06_grml_extension8
1 files changed, 7 insertions, 1 deletions
diff --git a/files/.zsh/rc/S06_grml_extension b/files/.zsh/rc/S06_grml_extension
index ba106f0..e9b673d 100644
--- a/files/.zsh/rc/S06_grml_extension
+++ b/files/.zsh/rc/S06_grml_extension
@@ -2,9 +2,15 @@ function virtual_env_prompt () {
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
}
+function nnn_prompt() {
+ REPLY=${NNNLVL+N3 }
+}
+
grml_theme_add_token \
virtual-env -f virtual_env_prompt '%F{magenta}' '%f'
+grml_theme_add_token \
+ nnn -f nnn_prompt '%F{green}' '%f'
zstyle ':prompt:grml:left:setup' items \
- rc virtual-env change-root user at host path vcs percent
+ rc virtual-env nnn change-root user at host path vcs percent
# vim: ft=zsh :