From ef439c0f3254b42ddea9589e64fc2c579facc0f0 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 27 May 2011 21:39:24 +0200 Subject: [PATCH] ZSH: Add hostname, CXX=clang --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 4235413..c6f43f4 100644 --- a/zshrc +++ b/zshrc @@ -25,9 +25,11 @@ export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_us=$'\e[0;36m' export CC=clang +export CXX=clang # Functions -function env() { +function env() +{ exec /usr/bin/env "$@" | grep -v ^LESS_TERMCAP_ } @@ -51,7 +53,7 @@ chpwd_functions+='chpwd_update_git_vars' chpwd_functions+='chpwd_show_todo' # Set the prompt. -PROMPT='%{${fg[cyan]}%}%B%~%b%{${fg[default]}%} %(?.%{${fg[green]}%}O.%{${fg[red]}%}X)%{${fg[default]}%} %# ' +PROMPT='(%{${fg[magenta]}%}%m%{${fg[default]}%}) %{${fg[cyan]}%}%B%~%b%{${fg[default]}%} %(?.%{${fg[green]}%}O.%{${fg[red]}%}X)%{${fg[default]}%} %# ' RPROMPT='$(prompt_git_info)%{${fg[default]}%}' # Aliases