Skip to content

Commit

Permalink
Fix colors and add user to prompt context
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Matos committed Dec 10, 2015
1 parent 235b943 commit 1c87120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zsh/pre.zsh-theme
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Custom IS-UZ Theme based in Dracula and Agnoster's Theme
# @author Leandro Matos <leandromatos@is-uz.com>

# IS-UZ Theme v0.0.1
# IS-UZ Theme v1.0.1
#
# https://github.com/leandromatos/is-uz
#
Expand Down Expand Up @@ -83,7 +83,7 @@ prompt_context() {
local user=`whoami`

if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment green black "%(!.%{%F{pink}%}.)"
prompt_segment green black "%(!.%{%F{pink}%}.)$user"
fi
}

Expand All @@ -105,7 +105,7 @@ prompt_git() {

# Dir: current working directory
prompt_dir() {
prompt_segment blue default '%~'
prompt_segment cyan black '%~'
# echo $(pwd | sed -e "s,^$HOME,~," | sed "s@\(.\)[^/]*/@\1/@g")
}

Expand Down

0 comments on commit 1c87120

Please sign in to comment.