summaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-23 01:00:55 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-23 01:00:55 +0100
commitfdc40083eb3cd4592dddbdff83cb9b558d59a625 (patch)
tree2d3c64b770fbbd9aa36fb317141d594eb730a78a /dot_config
parentzsh: retab under new editorconfig rules (diff)
zsh/prompt_zstyle: add grml preset
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/zsh/functions/prompt_zstyle_setup9
1 files changed, 9 insertions, 0 deletions
diff --git a/dot_config/zsh/functions/prompt_zstyle_setup b/dot_config/zsh/functions/prompt_zstyle_setup
index 42caf90..1269575 100644
--- a/dot_config/zsh/functions/prompt_zstyle_setup
+++ b/dot_config/zsh/functions/prompt_zstyle_setup
@@ -62,6 +62,15 @@ prompt_zstyle_preset() {
zstyle :prompt:zstyle ps1 \
login ' ' pwd vcsinfo return separator ' '
;;
+ grml)
+ prompt_zstyle_reset
+ zstyle :prompt:zstyle:parts login '%B%(!.%F{red}.%F{blue})%n%f%b@%m'
+ zstyle :prompt:zstyle:parts return '%(0?..%F{red}%?%f )'
+ zstyle :prompt:zstyle:parts vcsinfo \
+ '${vcs_info_msg_0_:+ $vcs_info_msg_0_}'
+ zstyle :prompt:zstyle ps1 \
+ return login ' ' pwd vcsinfo ' ' separator ' '
+ ;;
esac
}