Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
70cb607b
Commit
70cb607b
authored
Jun 07, 2011
by
Adam Lindberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused colors and use original prompt color
parent
a9b6f081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
guru.zsh-theme
themes/guru.zsh-theme
+4
-9
No files found.
themes/guru.zsh-theme
View file @
70cb607b
...
@@ -6,23 +6,17 @@
...
@@ -6,23 +6,17 @@
# Color shortcuts
# Color shortcuts
R=$fg[red]
R=$fg[red]
Y=$fg[yellow]
G=$fg[green]
G=$fg[green]
M=$fg[magenta]
M=$fg[magenta]
W=$fg[white]
B=$fg[black]
RB=$fg_bold[red]
RB=$fg_bold[red]
YB=$fg_bold[yellow]
YB=$fg_bold[yellow]
GB=$fg_bold[green]
BB=$fg_bold[blue]
MB=$fg_bold[magenta]
WB=$fg_bold[white]
BB=$fg_bold[black]
RESET=$reset_color
RESET=$reset_color
if [ "$(whoami)" = "root" ]; then
if [ "$(whoami)" = "root" ]; then
PROMPTCOLOR="%{$RB%}" PREFIX="-!-";
PROMPTCOLOR="%{$RB%}" PREFIX="-!-";
else
else
PROMPTCOLOR="
%{$BB%}
" PREFIX="---";
PROMPTCOLOR="" PREFIX="---";
fi
fi
local return_code="%(?..%{$R%}%? ↵%{$RESET%})"
local return_code="%(?..%{$R%}%? ↵%{$RESET%})"
...
@@ -75,7 +69,8 @@ function custom_git_prompt() {
...
@@ -75,7 +69,8 @@ function custom_git_prompt() {
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_prompt_ahead)$(custom_git_prompt_status)$ZSH_THEME_GIT_PROMPT_SUFFIX"
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$(git_prompt_ahead)$(custom_git_prompt_status)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
}
PROMPT='${PROMPTCOLOR}$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} '
# %B sets bold text
PROMPT='%B$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} '
RPS1="${return_code}"
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$YB%}‹"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$YB%}‹"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment