Customize Marauder bash prompt

This commit is contained in:
2024-07-14 00:46:12 -07:00
parent 84e220c8a7
commit 81d9a970b9

View File

@@ -96,6 +96,16 @@
obsidian
];
programs.bash = {
promptInit = ''
PROMPT_COLOR="1;31m"
((UID)) && PROMPT_COLOR="1;32m"
BASE_PROMPT="💜\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] "
BRANCH="\$(git branch --show-current 2>/dev/null)"
PS1="\n\[$(tput sc)\$([ -n "$BRANCH" ] && printf "%*s" $COLUMNS "$BRANCH")\$(tput rc)\]$BASE_PROMPT"
'';
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;