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