summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bragi.nix33
1 files changed, 15 insertions, 18 deletions
diff --git a/bragi.nix b/bragi.nix
index 7c90029e..67cd54db 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -146,22 +146,19 @@
146 { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } 146 { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; }
147 { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } 147 { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; }
148 ]; 148 ];
149 environment.etc."bashrc.local" = { 149 programs.bash.promptInit = ''
150 enable = true; 150 case "$TERM" in
151 text = '' 151 PROMPT_COLOR="1;31m"
152 case "$TERM" in 152 let $UID && PROMPT_COLOR="1;32m"
153 PROMPT_COLOR="1;31m" 153 xterm*|rxvt*|kterm|aterm|gnome*) # Others can go here.
154 let $UID && PROMPT_COLOR="1;32m" 154 PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
155 xterm*|rxvt*|kterm|aterm|gnome*) # Others can go here. 155 if test "$TERM" = "xterm"; then
156 PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " 156 PS1="\[\033]2;\h:\u:\w\007\]$PS1"
157 if test "$TERM" = "xterm"; then 157 fi
158 PS1="\[\033]2;\h:\u:\w\007\]$PS1" 158 ;;
159 fi 159 *)
160 ;; 160 PS1="[\u@\h:\w]$ "
161 *) 161 ;;
162 PS1="[\u@\h:\w]$ " 162 esac
163 ;; 163 '';
164 esac
165 '';
166 };
167} 164}