claytron / dotfiles

My *nix confs

This URL has Read+Write access

dotfiles / .zshprompt_simple
100644 21 lines (17 sloc) 0.433 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function precmd {
    # Only show user in the prompt if it isn't yourself
    # Make sure and set the $ME var in .zshrc
    PR_IMPOSTER=""
    if [ "$ME" != "" ] && [ $(whoami) != "$ME" ] && PR_IMPOSTER="(%n%)"
}
 
setprompt () {
    # Need this so the prompt will work.
    setopt prompt_subst
    
    # simple version of my ZSH prompt
    RPROMPT=''
    PROMPT='$PR_IMPOSTER
%D{%a %h %e, %H:%M} | %/
%m%# '
    PS2=''
}
 
setprompt