forked from ohmyzsh/ohmyzsh
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'robbyrussell/master'
- Loading branch information
Showing
6 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/zsh | ||
# A script to make using 256 colors in zsh less painful. | ||
# P.C. Shyamshankar <sykora@lucentbeing.com> | ||
# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/ | ||
|
||
typeset -Ag FX FG BG | ||
|
||
FX=( | ||
reset "%{[00m%}" | ||
bold "%{[01m%}" no-bold "%{[22m%}" | ||
italic "%{[03m%}" no-italic "%{[23m%}" | ||
underline "%{[04m%}" no-underline "%{[24m%}" | ||
blink "%{[05m%}" no-blink "%{[25m%}" | ||
reverse "%{[07m%}" no-reverse "%{[27m%}" | ||
) | ||
|
||
for color in {000..255}; do | ||
FG[$color]="%{[38;5;${color}m%}" | ||
BG[$color]="%{[48;5;${color}m%}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ then | |
else | ||
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh | ||
fi | ||
|
||
unset config_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# zsh theme requires 256 color enabled terminal | ||
# i.e TERM=xterm-256color | ||
# Preview - http://www.flickr.com/photos/adelcampo/4556482563/sizes/o/ | ||
# based on robbyrussell's shell but louder! | ||
|
||
PROMPT='%{$fg_bold[blue]%}$(git_prompt_info) %F{208}%c%f | ||
%{$fg_bold[white]%}%# %{$reset_color%}' | ||
RPROMPT='%B%F{208}%n%f%{$fg_bold[white]%}@%F{039}%m%f%{$reset_color%}' | ||
|
||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{154}±|%f%F{124}" | ||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | ||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}%B✘%b%F{154}|%f%{$reset_color%}" | ||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%F{154}|" |