Skip to content
This repository

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

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
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 52 additions and 0 deletions. Show diff stats Hide diff stats

  1. +52 0 themes/larandar.zsh-theme
52 themes/larandar.zsh-theme
... ... @@ -0,0 +1,52 @@
  1 +# Oh My Zsh theme from https://github.com/Larandar/
  2 +# Other ZSH can maybe be on my Github
  3 +# Inspirations : Bira, Gentoo, Lambda, Miloshadzic and Sorin
  4 +
  5 +function __custom_git_prompt() {
  6 + ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  7 + ZSH_GIT_BRANCH="${ref#refs/heads/}"
  8 +
  9 + if [ -d $PWD/.git ] ; then
  10 + ZSH_GIT_REPO=$(basename $PWD)
  11 + else
  12 + ZSH_GIT_REPO="$(basename $(dirname $(git rev-parse --git-dir)))"
  13 + fi
  14 +
  15 + ZSH_GIT_DIRTY="$(parse_git_dirty)"
  16 + [ ${ZSH_GIT_DIRTY} ] && ZSH_GIT_DIRTY+=" " && ZSH_GIT_STATUT="${ZSH_COLOR_BASE}[ $(git_prompt_status) ${ZSH_COLOR_BASE}]"
  17 +
  18 + 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}"
  19 +}
  20 +
  21 +function __custom_prompt() {
  22 + echo "$(__custom_git_prompt)"
  23 +}
  24 +
  25 +ZSH_COLOR_VOID="%{$reset_color%}"
  26 +ZSH_COLOR_BASE="%{%F{3}%}"
  27 +ZSH_COLOR_SUB1="%{%F{4}%}"
  28 +ZSH_COLOR_SUB2="%{%F{5}%}"
  29 +ZSH_COLOR_RBASE="%{%F{13}%}"
  30 +
  31 +ZSH_COLOR_GIT_REPO="%{%F{6}%}"
  32 +ZSH_COLOR_GIT_BRANCH="%{%F{9}%}"
  33 +
  34 +ZSH_COLOR_ERROR="%{%F{1}%}"
  35 +ZSH_COLOR_HOST="${ZSH_COLOR_RBASE}"
  36 +ZSH_COLOR_RESET="${ZSH_COLOR_BASE}"
  37 +
  38 +
  39 +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡${ZSH_COLOR_RESET}"
  40 +
  41 +ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}✚"
  42 +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%}✹"
  43 +ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✖"
  44 +ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%}➜"
  45 +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%}|"
  46 +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%}✭"
  47 +
  48 +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)
  49 +${ZSH_COLOR_BASE}╰─ ${ZSH_COLOR_SUB1} %{%b%}${ZSH_COLOR_VOID}"
  50 +
  51 +return_code="%(?..${ZSH_COLOR_ERROR}%? ↵${ZSH_COLOR_VOID})"
  52 +RPROMPT="${return_code}${ZSH_COLOR_VOID} ${ZSH_COLOR_RBASE}!%!${ZSH_COLOR_VOID}"

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.