diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-12 20:16:24 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-12 20:16:24 +0200 |
commit | 7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da (patch) | |
tree | 551b13dad80bfc1d636559bccf93e9662144ea3a | |
parent | 1cfd55fd5fcaed14aeeccfed488167f4c3c3cca9 (diff) | |
download | nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.gz nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.bz2 nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.tar.xz nixos-7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da.zip |
emacs tramp fix
-rw-r--r-- | bragi.nix | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 | } |