Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Oh my ViaRézo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaRézo
Oh my ViaRézo
Commits
ef52de65
Commit
ef52de65
authored
8 years ago
by
Ayaz Badouraly
Browse files
Options
Downloads
Patches
Plain Diff
Refactoring
parent
bf5471df
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
via.zsh-theme
+10
-6
10 additions, 6 deletions
via.zsh-theme
with
10 additions
and
6 deletions
via.zsh-theme
+
10
−
6
View file @
ef52de65
...
@@ -32,6 +32,9 @@ local vcs_unstaged_color=${OHMYVIA_VCS_UNSTAGED_COLOR:-"$fg[red]"}
...
@@ -32,6 +32,9 @@ local vcs_unstaged_color=${OHMYVIA_VCS_UNSTAGED_COLOR:-"$fg[red]"}
local
vcs_staged_color
=
${
OHMYVIA_VCS_STAGED_COLOR
:-
"
$fg
[yellow]"
}
local
vcs_staged_color
=
${
OHMYVIA_VCS_STAGED_COLOR
:-
"
$fg
[yellow]"
}
local
vcs_clean_color
=
${
OHMYVIA_VCS_CLEAN_COLOR
:-
"
$fg
[green]"
}
local
vcs_clean_color
=
${
OHMYVIA_VCS_CLEAN_COLOR
:-
"
$fg
[green]"
}
zstyle
':vcs_info:*'
stagedstr
"%{
$vcs_staged_color
%}"
zstyle
':vcs_info:*'
unstagedstr
"%{
$vcs_unstaged_color
%}"
# In normal formats and actionformats the following replacements are done:
# In normal formats and actionformats the following replacements are done:
# %s : The VCS in use (git, hg, svn, etc.).
# %s : The VCS in use (git, hg, svn, etc.).
# %b : Information about the current branch.
# %b : Information about the current branch.
...
@@ -43,12 +46,13 @@ local vcs_clean_color=${OHMYVIA_VCS_CLEAN_COLOR:-"$fg[green]"}
...
@@ -43,12 +46,13 @@ local vcs_clean_color=${OHMYVIA_VCS_CLEAN_COLOR:-"$fg[green]"}
# %r : The repository name. If %R is /foo/bar/repoXY, %r is repoXY.
# %r : The repository name. If %R is /foo/bar/repoXY, %r is repoXY.
# %S : A subdirectory within a repository. If $PWD is /foo/bar/repoXY/beer/tasty, %S is beer/tasty.
# %S : A subdirectory within a repository. If $PWD is /foo/bar/repoXY/beer/tasty, %S is beer/tasty.
# %m : A "misc" replacement. It is at the discretion of the backend to decide what this replacement expands to.
# %m : A "misc" replacement. It is at the discretion of the backend to decide what this replacement expands to.
zstyle
':vcs_info:*'
stagedstr
"%{
$vcs_staged_color
%}"
local
vcs_formats_prefix
=
" %{
$fg
[magenta]%}(%{
$fg
[white]%}%s%{
$fg
[magenta]%})%{
$reset_color
%}"
zstyle
':vcs_info:*'
unstagedstr
"%{
$vcs_unstaged_color
%}"
local
vcs_formats_hyphen
=
"%{
$fg
[yellow]%}-%{
$reset_color
%}"
zstyle
':vcs_info:*'
formats
\
local
vcs_formats_normal
=
"%{
$fg
[magenta]%}[%{
$vcs_clean_color
%}%c%u%b%{
$fg
[magenta]%}]%{
$reset_color
%}"
" %{
$fg
[magenta]%}(%{
$fg
[white]%}%s%{
$fg
[magenta]%})%{
$fg
[yellow]%}-%{
$fg
[magenta]%}[%{
$vcs_clean_color
%}%c%u%b%{
$fg
[magenta]%}]%{
$reset_color
%}"
local
vcs_formats_action
=
"%{
$fg
[magenta]%}[%{
$vcs_clean_color
%}%c%u%b%{
$fg
[yellow]%}:%{
$fg
[red]%}%a%{
$fg
[magenta]%}]%{
$reset_color
%}"
zstyle
':vcs_info:*'
actionformats
\
" %{
$fg
[magenta]%}(%{
$fg
[white]%}%s%{
$fg
[magenta]%})%{
$fg
[yellow]%}-%{
$fg
[magenta]%}[%{
$vcs_clean_color
%}%c%u%b%{
$fg
[yellow]%}:%{
$fg
[red]%}%a%{
$fg
[magenta]%}]%{
$reset_color
%}"
zstyle
':vcs_info:*'
formats
"
$vcs_formats_prefix$vcs_formats_hyphen$vcs_formats_normal
"
zstyle
':vcs_info:*'
actionformats
"
$vcs_formats_prefix$vcs_formats_hyphen$vcs_formats_action
"
precmd
()
{
vcs_info
}
precmd
()
{
vcs_info
}
RPROMPT
=
'${vcs_info_msg_0_}'
RPROMPT
=
'${vcs_info_msg_0_}'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment