Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding Larandar theme #1198

Closed
wants to merge 2 commits into from

4 participants

Adrien Dudouit-Exposito Pavel Puchkin Roey Darwish Dror Robby Russell
Adrien Dudouit-Exposito

Add my theme to theme list:

Larandar
!http://i.imgur.com/XqJOU.png!

To use: Set @ZSH_THEME@ in @ ~/.zshrc @ to @ larandar @.
Inspired by @ bira @, @ blink @, @ miloshadzic @ and @ rkj-repos @

This theme is stable ( using three month without any bug found ) and suport git information, it's also supose to suport svn and mercury but don't work...

Thank for adding

Pavel Puchkin

See note about themes sending in readme

Adrien Dudouit-Exposito

Ok sorry.

Roey Darwish Dror

Very nice theme. However, some of its colors are not displayed correctly in tmux.

UPDATE: I added
set -g default-terminal "screen-256color"

to ~/.tmux.conf and it's working fine now

Adrien Dudouit-Exposito

Use Solarized color and it will be fine. Thank for comment.

So I wish to improve performance.

Adrien Dudouit-Exposito

You right you need 256color, but you can change color by change ZSH_COLOR_* to you color theme.

Robby Russell
Owner

Sorry, but we're not taking in anymore themes without upvotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 28, 2012
  1. Adrien Dudouit-Exposito
Commits on Jun 29, 2012
  1. Adrien Dudouit-Exposito
This page is out of date. Refresh to see the latest.
Showing with 52 additions and 0 deletions.
  1. +52 −0 themes/larandar.zsh-theme
52 themes/larandar.zsh-theme
View
@@ -0,0 +1,52 @@
+# Oh My Zsh theme from https://github.com/Larandar/
+# Other ZSH can maybe be on my Github
+# Inspirations : Bira, Gentoo, Lambda, Miloshadzic and Sorin
+
+function __custom_git_prompt() {
+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+ ZSH_GIT_BRANCH="${ref#refs/heads/}"
+
+ if [ -d $PWD/.git ] ; then
+ ZSH_GIT_REPO=$(basename $PWD)
+ else
+ ZSH_GIT_REPO="$(basename $(dirname $(git rev-parse --git-dir)))"
+ fi
+
+ ZSH_GIT_DIRTY="$(parse_git_dirty)"
+ [ ${ZSH_GIT_DIRTY} ] && ZSH_GIT_DIRTY+=" " && ZSH_GIT_STATUT="${ZSH_COLOR_BASE}[ $(git_prompt_status) ${ZSH_COLOR_BASE}]"
+
+ echo " ${ZSH_COLOR_BASE}git:{ ${ZSH_COLOR_GIT_REPO}${ZSH_GIT_REPO}${ZSH_COLOR_BASE} @ ${ZSH_COLOR_GIT_BRANCH}${ZSH_GIT_BRANCH}${ZSH_COLOR_BASE} ${ZSH_GIT_DIRTY}${COLOR_BASE}}${ZSH_GIT_STATUT}"
+}
+
+function __custom_prompt() {
+ echo "$(__custom_git_prompt)"
+}
+
+ZSH_COLOR_VOID="%{$reset_color%}"
+ZSH_COLOR_BASE="%{%F{3}%}"
+ZSH_COLOR_SUB1="%{%F{4}%}"
+ZSH_COLOR_SUB2="%{%F{5}%}"
+ZSH_COLOR_RBASE="%{%F{13}%}"
+
+ZSH_COLOR_GIT_REPO="%{%F{6}%}"
+ZSH_COLOR_GIT_BRANCH="%{%F{9}%}"
+
+ZSH_COLOR_ERROR="%{%F{1}%}"
+ZSH_COLOR_HOST="${ZSH_COLOR_RBASE}"
+ZSH_COLOR_RESET="${ZSH_COLOR_BASE}"
+
+
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡${ZSH_COLOR_RESET}"
+
+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}✚"
+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%}✹"
+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✖"
+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%}➜"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%}|"
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%}✭"
+
+PROMPT="${ZSH_COLOR_BASE}╭─[ ${ZSH_COLOR_SUB1}%n${ZSH_COLOR_BASE} @${ZSH_COLOR_HOST}%m${ZSH_COLOR_BASE} ] ${ZSH_COLOR_SUB2}%2~${ZSH_COLOR_BASE} \$(__custom_git_prompt)
+${ZSH_COLOR_BASE}╰─ ${ZSH_COLOR_SUB1} %{%b%}${ZSH_COLOR_VOID}"
+
+return_code="%(?..${ZSH_COLOR_ERROR}%? ↵${ZSH_COLOR_VOID})"
+RPROMPT="${return_code}${ZSH_COLOR_VOID} ${ZSH_COLOR_RBASE}!%!${ZSH_COLOR_VOID}"
Something went wrong with that request. Please try again.