diff options
| author | Anton Bobov <anton@bobov.name> | 2024-01-24 22:23:53 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-01-24 22:23:53 +0500 |
| commit | 727e75a26120c8b56e93c7319281cbfc84d63a8b (patch) | |
| tree | 9691aba02cf883a718c35d2cb3c1b1ebf2930903 /files/.zsh/rc/S06_grml_extension | |
| parent | 75a739e1fe61cbde14331282d8729809e826c3f1 (diff) | |
[zsh] Updates
Diffstat (limited to 'files/.zsh/rc/S06_grml_extension')
| -rw-r--r-- | files/.zsh/rc/S06_grml_extension | 8 |
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 : |
