summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:25:30 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:25:30 +0200
commite0d7a110c76c9932d079cf2a4f89b441a1d41ac7 (patch)
tree551b13dad80bfc1d636559bccf93e9662144ea3a
parent95353efc2ef2637d6645fd7f1639d9835be00eae (diff)
downloadnixos-e0d7a110c76c9932d079cf2a4f89b441a1d41ac7.tar
nixos-e0d7a110c76c9932d079cf2a4f89b441a1d41ac7.tar.gz
nixos-e0d7a110c76c9932d079cf2a4f89b441a1d41ac7.tar.bz2
nixos-e0d7a110c76c9932d079cf2a4f89b441a1d41ac7.tar.xz
nixos-e0d7a110c76c9932d079cf2a4f89b441a1d41ac7.zip
Revert "moved fix to bashrc.local"
This reverts commit 95353efc2ef2637d6645fd7f1639d9835be00eae.
-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}