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
b51e95e2
Commit
b51e95e2
authored
8 years ago
by
Ayaz Badouraly
Browse files
Options
Downloads
Patches
Plain Diff
Gathering variables initializations
parent
3eb39969
No related branches found
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
+14
-9
14 additions, 9 deletions
via.zsh-theme
with
14 additions
and
9 deletions
via.zsh-theme
+
14
−
9
View file @
b51e95e2
...
...
@@ -17,12 +17,24 @@ source $OHMYVIA_INSTALLATION_PATH/functions/utils.zsh
source
$OHMYVIA_INSTALLATION_PATH
/functions/vcs_themes.zsh
source
$OHMYVIA_INSTALLATION_PATH
/functions/vcs_utils.zsh
#################################################################################
# Variables initialization
#################################################################################
set_default OHMYVIA_TIME_FORMAT
"%D{%H:%M}"
set_default OHMYVIA_VCS_COLOR_UNSTAGED
"red"
set_default OHMYVIA_VCS_COLOR_STAGED
"yellow"
set_default OHMYVIA_VCS_COLOR_UNTRACKED
"blue"
set_default OHMYVIA_VCS_COLOR_STASH
"cyan"
set_default OHMYVIA_VCS_COLOR_CLEAN
"green"
set_default OHMYVIA_VCS_THEME
"default"
#################################################################################
# Setup prompts
#################################################################################
local
time_format
=
${
OHMYVIA_TIME_FORMAT
:-
"%D{%H:%M}"
}
local
clock
=
"%B%F{cyan}
$time_format
%f%b"
local
clock
=
"%B%F{cyan}
$OHMYVIA_TIME_FORMAT
%f%b"
# Check the UID
if
[[
$UID
-ne
0
]]
;
...
...
@@ -50,19 +62,12 @@ zstyle ':vcs_info:*' max-exports 1 # vcs_info only sets vcs_info_msg_0_
zstyle
':vcs_info:*'
enable
git
zstyle
':vcs_info:*'
check-for-changes
true
# enable %c and %u sequences usage
set_default OHMYVIA_VCS_COLOR_UNSTAGED
"red"
set_default OHMYVIA_VCS_COLOR_STAGED
"yellow"
set_default OHMYVIA_VCS_COLOR_UNTRACKED
"blue"
set_default OHMYVIA_VCS_COLOR_STASH
"cyan"
set_default OHMYVIA_VCS_COLOR_CLEAN
"green"
zstyle
':vcs_info:*'
unstagedstr
$OHMYVIA_VCS_COLOR_UNSTAGED
zstyle
':vcs_info:*'
stagedstr
$OHMYVIA_VCS_COLOR_STAGED
zstyle
':vcs_info:git*+set-message:*'
hooks misc-init git-stash git-untracked
# Load VCS theme
set_default OHMYVIA_VCS_THEME
"default"
eval
+vi-theme-
$OHMYVIA_VCS_THEME
zstyle
':vcs_info:*'
formats
"
$OHMYVIA_VCS_PROMPT_NORMAL
"
...
...
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