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
6d5e4eae
Commit
6d5e4eae
authored
Oct 05, 2010
by
steeef
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 256 colors, if available
parent
7405f5d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
steeef.zsh-theme
themes/steeef.zsh-theme
+21
-7
No files found.
themes/steeef.zsh-theme
View file @
6d5e4eae
...
...
@@ -19,6 +19,20 @@ colors
autoload -U add-zsh-hook
autoload -Uz vcs_info
#use extended color pallete if available
if [ $TERM = "xterm-256color" ]; 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]"
fi
# enable VCS systems you use
zstyle ':vcs_info:*' enable git svn
...
...
@@ -35,10 +49,10 @@ zstyle ':vcs_info:*:prompt:*' check-for-changes true
# %R - repository path
# %S - path in the repository
PR_RST="%{${reset_color}%}"
FMT_BRANCH="(%{$
fg[magenta]
%}%b%u%c${PR_RST})"
FMT_ACTION="(%{$
fg[green]
%}%a${PR_RST})"
FMT_UNSTAGED="%{$
fg[yellow]
%}●"
FMT_STAGED="%{$
fg[green]
%}●"
FMT_BRANCH="(%{$
turquoise
%}%b%u%c${PR_RST})"
FMT_ACTION="(%{$
limegreen
%}%a${PR_RST})"
FMT_UNSTAGED="%{$
orange
%}●"
FMT_STAGED="%{$
limegreen
%}●"
zstyle ':vcs_info:*:prompt:*' unstagedstr "${FMT_UNSTAGED}"
zstyle ':vcs_info:*:prompt:*' stagedstr "${FMT_STAGED}"
...
...
@@ -68,9 +82,9 @@ function steeef_precmd {
# check for untracked files or updated submodules, since vcs_info doesn't
if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
PR_GIT_UPDATE=1
FMT_BRANCH="(%{$
fg[magenta]%}%b%u%c%{$fg[red]
%}●${PR_RST})"
FMT_BRANCH="(%{$
turquoise%}%b%u%c%{$hotpink
%}●${PR_RST})"
else
FMT_BRANCH="(%{$
fg[magenta]
%}%b%u%c${PR_RST})"
FMT_BRANCH="(%{$
turquoise
%}%b%u%c${PR_RST})"
fi
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
...
...
@@ -82,5 +96,5 @@ function steeef_precmd {
add-zsh-hook precmd steeef_precmd
PROMPT=$'
%{$
fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]
%}%~%{$reset_color%} $vcs_info_msg_0_
%{$
purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen
%}%~%{$reset_color%} $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