Modified agnoster

This commit is contained in:
Dreaded_X 2015-02-05 18:37:58 +01:00
parent a5fd651215
commit 88a0454e77

View File

@ -61,7 +61,7 @@ prompt_end() {
# Context: user@hostname (who am I and where am I)
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER@%m"
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
@ -139,7 +139,7 @@ prompt_hg() {
# Dir: current working directory
prompt_dir() {
prompt_segment blue black '%~'
prompt_segment blue black '%3~'
}
# Virtualenv: current working virtualenv
@ -176,4 +176,5 @@ build_prompt() {
prompt_end
}
PROMPT='%{%f%b%k%}$(build_prompt) '
PROMPT='%{%f%b%k%}$(build_prompt)
 '