From e0d7a110c76c9932d079cf2a4f89b441a1d41ac7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Jun 2015 20:25:30 +0200 Subject: Revert "moved fix to bashrc.local" This reverts commit 95353efc2ef2637d6645fd7f1639d9835be00eae. --- bragi.nix | 33 +++++++++++++++------------------ 1 file 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 @@ { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } ]; - environment.etc."bashrc.local" = { - enable = true; - text = '' - case "$TERM" in - PROMPT_COLOR="1;31m" - let $UID && PROMPT_COLOR="1;32m" - xterm*|rxvt*|kterm|aterm|gnome*) # Others can go here. - PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " - if test "$TERM" = "xterm"; then - PS1="\[\033]2;\h:\u:\w\007\]$PS1" - fi - ;; - *) - PS1="[\u@\h:\w]$ " - ;; - esac - ''; - }; + programs.bash.promptInit = '' + case "$TERM" in + PROMPT_COLOR="1;31m" + let $UID && PROMPT_COLOR="1;32m" + xterm*|rxvt*|kterm|aterm|gnome*) # Others can go here. + PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " + if test "$TERM" = "xterm"; then + PS1="\[\033]2;\h:\u:\w\007\]$PS1" + fi + ;; + *) + PS1="[\u@\h:\w]$ " + ;; + esac + ''; } -- cgit v1.2.3