summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:22:31 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:22:31 +0200
commit95353efc2ef2637d6645fd7f1639d9835be00eae (patch)
tree21974a125cb7deff631e0987063894628d5eb7ce
parent7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da (diff)
downloadnixos-95353efc2ef2637d6645fd7f1639d9835be00eae.tar
nixos-95353efc2ef2637d6645fd7f1639d9835be00eae.tar.gz
nixos-95353efc2ef2637d6645fd7f1639d9835be00eae.tar.bz2
nixos-95353efc2ef2637d6645fd7f1639d9835be00eae.tar.xz
nixos-95353efc2ef2637d6645fd7f1639d9835be00eae.zip
moved fix to bashrc.local
-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}