Skip to content

Commit ee8ffea

Browse files
author
Leandro Matos
committed
Fix colors and remove user to prompt context
1 parent badf567 commit ee8ffea

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

zsh/pre.zsh-theme

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Custom IS-UZ Theme based in Dracula and Agnoster's Theme
1+
# Custom Pre Theme based in Agnoster's Theme
22
# @author Leandro Matos <leandromatos@is-uz.com>
33

4-
# IS-UZ Theme v1.0.1
4+
# Pre Theme v1.0.2
55
#
66
# https://github.com/leandromatos/is-uz
77
#
@@ -11,28 +11,11 @@
1111
# http://mit-license.org
1212
#
1313
# @author Leandro Matos <leandro@is-uz.com>
14-
15-
# Agnoster's Theme - https://gist.github.com/3712874
16-
# A Powerline-inspired theme for ZSH
1714
#
1815
# # README
1916
#
2017
# In order for this theme to render correctly, you will need a
2118
# [Powerline-patched font](https://gist.github.com/1595572).
22-
#
23-
# In addition, I recommend the
24-
# [Solarized theme](https://github.com/altercation/solarized/) and, if you're
25-
# using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over Terminal.app -
26-
# it has significantly better color fidelity.
27-
#
28-
# # Goals
29-
#
30-
# The aim of this theme is to only show you *relevant* information. Like most
31-
# prompts, it will only show git information when in a git working directory.
32-
# However, it goes a step further: everything from the current user and
33-
# hostname to whether the last call exited with an error to whether background
34-
# jobs are running in this shell will all be displayed automatically when
35-
# appropriate.
3619

3720
### Segment drawing
3821
# A few utility functions to make it easy and re-usable to draw segmented prompts
@@ -83,7 +66,7 @@ prompt_context() {
8366
local user=`whoami`
8467

8568
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
86-
prompt_segment green black "%(!.%{%F{pink}%}.)$user"
69+
prompt_segment black default "%(!.%{%F{yellow}%}.)"
8770
fi
8871
}
8972

@@ -105,7 +88,7 @@ prompt_git() {
10588

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

0 commit comments

Comments
 (0)