From 95814eb86b1e9277fe1a96b792928311b56852b5 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Mon, 31 Mar 2025 19:27:41 +0000 Subject: [PATCH] add chroot prompt --- dot_config/zsh/dot_zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index af4bb6c..41bd18f 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -33,6 +33,12 @@ zstyle ':vcs_info:*' formats ' %F{green}%b' PROMPT='%F{yellow}%n@%m %F{white}%1~%(?.. %?) $ ' RPROMPT='%f$vcs_info_msg_0_ ' +# Detect if we're in a schroot and modify prompt accordingly +if [[ -n "$SCHROOT_CHROOT_NAME" ]]; then + # We're in a schroot - add [chroot:name] to the prompt + PS1="[chroot:$SCHROOT_CHROOT_NAME] $PS1" +fi + alias boinctui='boinctui --boinchost=localhost' alias bt='bluetoothctl' alias c='clear'