punktdateien-bashrc/settings.d/custom-prompt.sh

7 lines
476 B
Bash

#!/usr/bin/env bash
if [[ "${CONFIG_CUSTOM_PROMPT}" == "1" ]]; then
export "PS1=\[\033[38;5;33m\][\[$(tput sgr0)\]\[\033[38;5;38m\]\u\[$(tput sgr0)\]\[\033[38;5;33m\]@\[$(tput sgr0)\]\[\033[38;5;38m\]\H\[$(tput sgr0)\]\[\033[38;5;33m\]:\[$(tput sgr0)\]\[\033[38;5;38m\]\W\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;214m\]\$?\[$(tput sgr0)\]\[\033[38;5;33m\]]\\$\[$(tput sgr0)\] "
export "PS2=\[\033[38;5;196m\][incomplete]: \033[0;10m"
export "PS4=\${0}:\${LINENO}+ "
fi