From 7a041e1d95cbade8d4c7f74cbef1bfbdf8b9a9da Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Jun 2015 20:16:24 +0200 Subject: emacs tramp fix --- bragi.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bragi.nix') diff --git a/bragi.nix b/bragi.nix index 6672274f..67cd54db 100644 --- a/bragi.nix +++ b/bragi.nix @@ -146,4 +146,19 @@ { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } ]; + 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