Customize Marauder bash prompt
This commit is contained in:
@@ -96,6 +96,16 @@
|
|||||||
obsidian
|
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 = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
Reference in New Issue
Block a user