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
bb5bc64e
Commit
bb5bc64e
authored
Sep 19, 2015
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4155 from honnix/fix_color
[theme] Fix color problem of steeef theme
parents
681c42ac
46d13384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
steeef.zsh-theme
themes/steeef.zsh-theme
+9
-9
No files found.
themes/steeef.zsh-theme
View file @
bb5bc64e
...
...
@@ -10,7 +10,7 @@
export VIRTUAL_ENV_DISABLE_PROMPT=1
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('
$fg[blue]`basename $VIRTUAL_ENV`%{$reset_color%}
') '
[ $VIRTUAL_ENV ] && echo '('
%F{blue}`basename $VIRTUAL_ENV`%f
') '
}
PR_GIT_UPDATE=1
...
...
@@ -20,18 +20,18 @@ autoload -U add-zsh-hook
autoload -Uz vcs_info
#use extended color pallete if available
if [[ $
TERM = *256color* || $TERM = *rxvt*
]]; then
if [[ $
terminfo[colors] -ge 256
]]; then
turquoise="%F{81}"
orange="%F{166}"
purple="%F{135}"
hotpink="%F{161}"
limegreen="%F{118}"
else
turquoise="
$fg[cyan]
"
orange="
$fg[yellow]
"
purple="
$fg[magenta]
"
hotpink="
$fg[red]
"
limegreen="
$fg[green]
"
turquoise="
%F{cyan}
"
orange="
%F{yellow}
"
purple="
%F{magenta}
"
hotpink="
%F{red}
"
limegreen="
%F{green}
"
fi
# enable VCS systems you use
...
...
@@ -48,7 +48,7 @@ zstyle ':vcs_info:*:prompt:*' check-for-changes true
# %a - action (e.g. rebase-i)
# %R - repository path
# %S - path in the repository
PR_RST="%
{${reset_color}%}
"
PR_RST="%
f
"
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
FMT_ACTION="(%{$limegreen%}%a${PR_RST})"
FMT_UNSTAGED="%{$orange%}●"
...
...
@@ -96,5 +96,5 @@ function steeef_precmd {
add-zsh-hook precmd steeef_precmd
PROMPT=$'
%{$purple%}%n
%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_$(virtualenv_info)%{$reset_color%}
%{$purple%}%n
${PR_RST} at %{$orange%}%m${PR_RST} in %{$limegreen%}%~${PR_RST} $vcs_info_msg_0_$(virtualenv_info)
$ '
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