From 81d9a970b993d8b64562521ad5685ff75420323f Mon Sep 17 00:00:00 2001 From: Nettika Date: Sun, 14 Jul 2024 00:46:12 -0700 Subject: [PATCH] Customize Marauder bash prompt --- marauder/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/marauder/default.nix b/marauder/default.nix index 7279141..7fa4795 100755 --- a/marauder/default.nix +++ b/marauder/default.nix @@ -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;