- PS1+="\[$reset$white\]@"
- PS1+="\[$hostStyle\]\h" # host
- PS1+="\[$reset$white\]: "
- PS1+="\[$green\]\w" # working directory
- PS1+="\$(prompt_git \"$white on $cyan\")" # git repository details
- PS1+="\n"
- PS1+="\[$reset$white\]\$ \[$reset\]" # $ (and reset color)
+ PS1+="\[$charStyle\]@"
+ PS1+="\[$hostStyle\]\h " # host
+ #PS1+="\[$charStyle\]: "
+ PS1+="\[$wdirStyle\]\W " # working directory
+ PS1+='`erco=$?; [ $erco == 0 ] && echo -n ":)" || echo -n '"\"\[$red\]:(\[$reset\] $\""'?=$erco` '
+ PS1+="\$(prompt_git \"$gitStyle\")" # git repository details
+ #PS1+="\n"
+ PS1+="\[$charStyle\]\$ \[$reset\]" # $ (and reset color)