summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:16:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-12 20:16:24 +0200
commit7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da (patch)
tree551b13dad80bfc1d636559bccf93e9662144ea3a /bragi.nix
parent1cfd55fd5fcaed14aeeccfed488167f4c3c3cca9 (diff)
downloadnixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar
nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.gz
nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.bz2
nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.xz
nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.zip
emacs tramp fix
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/bragi.nix b/bragi.nix
index 6672274f..67cd54db 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -146,4 +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 programs.bash.promptInit = ''
150 case "$TERM" in
151 PROMPT_COLOR="1;31m"
152 let $UID && PROMPT_COLOR="1;32m"
153 xterm*|rxvt*|kterm|aterm|gnome*) # Others can go here.
154 PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
155 if test "$TERM" = "xterm"; then
156 PS1="\[\033]2;\h:\u:\w\007\]$PS1"
157 fi
158 ;;
159 *)
160 PS1="[\u@\h:\w]$ "
161 ;;
162 esac
163 '';
149} 164}