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'