Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
0232ac4b
Unverified
Commit
0232ac4b
authored
May 08, 2019
by
Marc Cornellà
Committed by
GitHub
May 08, 2019
Browse files
Merge branch 'master' into master
parents
afb02876
ebc700be
Changes
446
Hide whitespace changes
Inline
Side-by-side
themes/3den.zsh-theme
View file @
0232ac4b
PROMPT=$'%{$fg[white]%}$(
~/.rvm/bin/rvm-
prompt) %{$fg_bold[cyan]%}%~%{$reset_color%}$(git_prompt_info) %{$fg[cyan]%}%D{[%I:%M:%S]}\
PROMPT=$'%{$fg[white]%}$(
ruby_
prompt
_info
) %{$fg_bold[cyan]%}%~%{$reset_color%}$(git_prompt_info) %{$fg[cyan]%}%D{[%I:%M:%S]}\
%{$fg_bold[green]%}%n$%{$reset_color%} '
%{$fg_bold[green]%}%n$%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}("
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}("
...
...
themes/adben.zsh-theme
View file @
0232ac4b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# # a) displaying a pseudo-random message from a database of quotations
# # a) displaying a pseudo-random message from a database of quotations
# # (https://en.wikipedia.org/wiki/Fortune_%28Unix%29)
# # (https://en.wikipedia.org/wiki/Fortune_%28Unix%29)
# # b) displaying randomly command line tips from The command line fu
# # b) displaying randomly command line tips from The command line fu
# # (http://www.commandlinefu.com) community: in order to make use of this functionality
# # (http
s
://www.commandlinefu.com) community: in order to make use of this functionality
# # you will need Internet connection.
# # you will need Internet connection.
# # This theme provides as well information for the current user's context, like;
# # This theme provides as well information for the current user's context, like;
# # branch and status for the current version control system (git and svn currently
# # branch and status for the current version control system (git and svn currently
...
@@ -23,11 +23,11 @@
...
@@ -23,11 +23,11 @@
# # optionally:
# # optionally:
# # -Oh-myzsh vcs plug-ins git and svn.
# # -Oh-myzsh vcs plug-ins git and svn.
# # -Solarized theme (https://github.com/altercation/solarized/)
# # -Solarized theme (https://github.com/altercation/solarized/)
# # -OS X: iTerm 2 (http://
www.
iterm2.com/)
# # -OS X: iTerm 2 (http
s
://iterm2.com/)
# # -font Source code pro (https://github.com/adobe/source-code-pro)
# # -font Source code pro (https://github.com/adobe/source-code-pro)
# #
# #
# # This theme's look and feel is based on the Aaron Toponce's zsh theme, more info:
# # This theme's look and feel is based on the Aaron Toponce's zsh theme, more info:
# # http://pthree.org/2008/11/23/727/
# # http
s
://pthree.org/2008/11/23/727/
# # enjoy!
# # enjoy!
########## COLOR ###########
########## COLOR ###########
for
COLOR
in
CYAN WHITE YELLOW MAGENTA BLACK BLUE RED DEFAULT GREEN GREY
;
do
for
COLOR
in
CYAN WHITE YELLOW MAGENTA BLACK BLUE RED DEFAULT GREEN GREY
;
do
...
...
themes/agnoster.zsh-theme
View file @
0232ac4b
...
@@ -13,9 +13,13 @@
...
@@ -13,9 +13,13 @@
#
#
# In addition, I recommend the
# In addition, I recommend the
# [Solarized theme](https://github.com/altercation/solarized/) and, if you're
# [Solarized theme](https://github.com/altercation/solarized/) and, if you're
# using it on Mac OS X, [iTerm 2](http://
www.
iterm2.com/) over Terminal.app -
# using it on Mac OS X, [iTerm 2](http
s
://iterm2.com/) over Terminal.app -
# it has significantly better color fidelity.
# it has significantly better color fidelity.
#
#
# If using with "light" variant of the Solarized color schema, set
# SOLARIZED_THEME variable to "light". If you don't specify, we'll assume
# you're using the "dark" variant.
#
# # Goals
# # Goals
#
#
# The aim of this theme is to only show you *relevant* information. Like most
# The aim of this theme is to only show you *relevant* information. Like most
...
@@ -30,6 +34,11 @@
...
@@ -30,6 +34,11 @@
CURRENT_BG
=
'NONE'
CURRENT_BG
=
'NONE'
case
${
SOLARIZED_THEME
:-
dark
}
in
light
)
CURRENT_FG
=
'white'
;;
*
)
CURRENT_FG
=
'black'
;;
esac
# Special Powerline characters
# Special Powerline characters
()
{
()
{
...
@@ -80,28 +89,31 @@ prompt_end() {
...
@@ -80,28 +89,31 @@ prompt_end() {
# Context: user@hostname (who am I and where am I)
# Context: user@hostname (who am I and where am I)
prompt_context
()
{
prompt_context
()
{
if
[[
"
$USER
"
!=
"
$DEFAULT_USER
"
||
-n
"
$SSH_CLIENT
"
]]
;
then
if
[[
"
$USER
"
!=
"
$DEFAULT_USER
"
||
-n
"
$SSH_CLIENT
"
]]
;
then
prompt_segment black default
"%(!.%{%F{yellow}%}.)
$USER
@%m"
prompt_segment black default
"%(!.%{%F{yellow}%}.)
%n
@%m"
fi
fi
}
}
# Git: branch/detached head, dirty status
# Git: branch/detached head, dirty status
prompt_git
()
{
prompt_git
()
{
((
$+
commands[git]
))
||
return
((
$+
commands[git]
))
||
return
if
[[
"
$(
git config
--get
oh-my-zsh.hide-status 2>/dev/null
)
"
=
1
]]
;
then
return
fi
local
PL_BRANCH_CHAR
local
PL_BRANCH_CHAR
()
{
()
{
local
LC_ALL
=
""
LC_CTYPE
=
"en_US.UTF-8"
local
LC_ALL
=
""
LC_CTYPE
=
"en_US.UTF-8"
PL_BRANCH_CHAR
=
$'
\u
e0a0'
#
PL_BRANCH_CHAR
=
$'
\u
e0a0'
#
}
}
local
ref dirty mode repo_path
local
ref dirty mode repo_path
repo_path
=
$(
git rev-parse
--git-dir
2>/dev/null
)
if
$(
git rev-parse
--is-inside-work-tree
>
/dev/null 2>&1
)
;
then
if
$(
git rev-parse
--is-inside-work-tree
>
/dev/null 2>&1
)
;
then
repo_path
=
$(
git rev-parse
--git-dir
2>/dev/null
)
dirty
=
$(
parse_git_dirty
)
dirty
=
$(
parse_git_dirty
)
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
ref
=
"➦
$(
git rev-parse
--short
HEAD 2> /dev/null
)
"
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
ref
=
"➦
$(
git rev-parse
--short
HEAD 2> /dev/null
)
"
if
[[
-n
$dirty
]]
;
then
if
[[
-n
$dirty
]]
;
then
prompt_segment yellow black
prompt_segment yellow black
else
else
prompt_segment green
black
prompt_segment green
$CURRENT_FG
fi
fi
if
[[
-e
"
${
repo_path
}
/BISECT_LOG"
]]
;
then
if
[[
-e
"
${
repo_path
}
/BISECT_LOG"
]]
;
then
...
@@ -140,7 +152,6 @@ prompt_bzr() {
...
@@ -140,7 +152,6 @@ prompt_bzr() {
if
[[
$status_all
-gt
0
]]
;
then
if
[[
$status_all
-gt
0
]]
;
then
prompt_segment yellow black
prompt_segment yellow black
echo
-n
"bzr@"
$revision
echo
-n
"bzr@"
$revision
else
else
prompt_segment green black
prompt_segment green black
echo
-n
"bzr@"
$revision
echo
-n
"bzr@"
$revision
...
@@ -151,7 +162,7 @@ prompt_bzr() {
...
@@ -151,7 +162,7 @@ prompt_bzr() {
prompt_hg
()
{
prompt_hg
()
{
((
$+
commands[hg]
))
||
return
((
$+
commands[hg]
))
||
return
local
rev st
atus
local
rev st
branch
if
$(
hg
id
>
/dev/null 2>&1
)
;
then
if
$(
hg
id
>
/dev/null 2>&1
)
;
then
if
$(
hg prompt
>
/dev/null 2>&1
)
;
then
if
$(
hg prompt
>
/dev/null 2>&1
)
;
then
if
[[
$(
hg prompt
"{status|unknown}"
)
=
"?"
]]
;
then
if
[[
$(
hg prompt
"{status|unknown}"
)
=
"?"
]]
;
then
...
@@ -164,7 +175,7 @@ prompt_hg() {
...
@@ -164,7 +175,7 @@ prompt_hg() {
st
=
'±'
st
=
'±'
else
else
# if working copy is clean
# if working copy is clean
prompt_segment green
black
prompt_segment green
$CURRENT_FG
fi
fi
echo
-n
$(
hg prompt
"☿ {rev}@{branch}"
)
$st
echo
-n
$(
hg prompt
"☿ {rev}@{branch}"
)
$st
else
else
...
@@ -178,7 +189,7 @@ prompt_hg() {
...
@@ -178,7 +189,7 @@ prompt_hg() {
prompt_segment yellow black
prompt_segment yellow black
st
=
'±'
st
=
'±'
else
else
prompt_segment green
black
prompt_segment green
$CURRENT_FG
fi
fi
echo
-n
"☿
$rev
@
$branch
"
$st
echo
-n
"☿
$rev
@
$branch
"
$st
fi
fi
...
@@ -187,7 +198,7 @@ prompt_hg() {
...
@@ -187,7 +198,7 @@ prompt_hg() {
# Dir: current working directory
# Dir: current working directory
prompt_dir
()
{
prompt_dir
()
{
prompt_segment blue
black
'%~'
prompt_segment blue
$CURRENT_FG
'%~'
}
}
# Virtualenv: current working virtualenv
# Virtualenv: current working virtualenv
...
@@ -203,8 +214,8 @@ prompt_virtualenv() {
...
@@ -203,8 +214,8 @@ prompt_virtualenv() {
# - am I root
# - am I root
# - are there background jobs?
# - are there background jobs?
prompt_status
()
{
prompt_status
()
{
local
symbols
local
-a
symbols
symbols
=()
[[
$RETVAL
-ne
0
]]
&&
symbols+
=
"%{%F{red}%}✘"
[[
$RETVAL
-ne
0
]]
&&
symbols+
=
"%{%F{red}%}✘"
[[
$UID
-eq
0
]]
&&
symbols+
=
"%{%F{yellow}%}⚡"
[[
$UID
-eq
0
]]
&&
symbols+
=
"%{%F{yellow}%}⚡"
[[
$(
jobs
-l
|
wc
-l
)
-gt
0
]]
&&
symbols+
=
"%{%F{cyan}%}⚙"
[[
$(
jobs
-l
|
wc
-l
)
-gt
0
]]
&&
symbols+
=
"%{%F{cyan}%}⚙"
...
@@ -212,11 +223,25 @@ prompt_status() {
...
@@ -212,11 +223,25 @@ prompt_status() {
[[
-n
"
$symbols
"
]]
&&
prompt_segment black default
"
$symbols
"
[[
-n
"
$symbols
"
]]
&&
prompt_segment black default
"
$symbols
"
}
}
#AWS Profile:
# - display current AWS_PROFILE name
# - displays yellow on red if profile name contains 'production' or
# ends in '-prod'
# - displays black on green otherwise
prompt_aws
()
{
[[
-z
"
$AWS_PROFILE
"
]]
&&
return
case
"
$AWS_PROFILE
"
in
*
-prod
|
*
production
*
)
prompt_segment red yellow
"AWS:
$AWS_PROFILE
"
;;
*
)
prompt_segment green black
"AWS:
$AWS_PROFILE
"
;;
esac
}
## Main prompt
## Main prompt
build_prompt
()
{
build_prompt
()
{
RETVAL
=
$?
RETVAL
=
$?
prompt_status
prompt_status
prompt_virtualenv
prompt_virtualenv
prompt_aws
prompt_context
prompt_context
prompt_dir
prompt_dir
prompt_git
prompt_git
...
...
themes/alanpeabody.zsh-theme
View file @
0232ac4b
local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'
local user='%{$fg[magenta]%}%n@%{$fg[magenta]%}%m%{$reset_color%}'
local pwd='%{$fg[blue]%}%~%{$reset_color%}'
local pwd='%{$fg[blue]%}%~%{$reset_color%}'
local rvm=''
if which rvm-prompt &> /dev/null; then
rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
else
if which rbenv &> /dev/null; then
rvm='%{$fg[green]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
fi
fi
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}'
local git_branch='$(git_prompt_status)%{$reset_color%}$(git_prompt_info)%{$reset_color%}'
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_DIRTY=""
...
@@ -24,5 +17,8 @@ ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
...
@@ -24,5 +17,8 @@ ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[green]%}‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
PROMPT="${user} ${pwd}$ "
PROMPT="${user} ${pwd}$ "
RPROMPT="${return_code} ${git_branch}
${rvm}
"
RPROMPT="${return_code} ${git_branch}
\$(ruby_prompt_info)
"
themes/amuse.zsh-theme
View file @
0232ac4b
# vim:ft=zsh ts=2 sw=2 sts=2
# vim:ft=zsh ts=2 sw=2 sts=2
rvm_current
()
{
rvm current 2>/dev/null
}
rbenv_version
()
{
rbenv version 2>/dev/null |
awk
'{print $1}'
}
PROMPT
=
'
%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
$ '
# Must use Powerline font, for \uE0A0 to render.
# Must use Powerline font, for \uE0A0 to render.
ZSH_THEME_GIT_PROMPT_PREFIX
=
" on %{
$fg
[magenta]%}
\u
E0A0 "
ZSH_THEME_GIT_PROMPT_PREFIX
=
" on %{
$fg
[magenta]%}
\u
E0A0 "
ZSH_THEME_GIT_PROMPT_SUFFIX
=
"%{
$reset_color
%}"
ZSH_THEME_GIT_PROMPT_SUFFIX
=
"%{
$reset_color
%}"
...
@@ -19,11 +7,12 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
...
@@ -19,11 +7,12 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
ZSH_THEME_GIT_PROMPT_UNTRACKED
=
"%{
$fg
[green]%}?"
ZSH_THEME_GIT_PROMPT_UNTRACKED
=
"%{
$fg
[green]%}?"
ZSH_THEME_GIT_PROMPT_CLEAN
=
""
ZSH_THEME_GIT_PROMPT_CLEAN
=
""
if
[
-e
~/.rvm/bin/rvm-prompt
]
;
then
ZSH_THEME_RUBY_PROMPT_PREFIX
=
"%{
$fg_bold
[red]%}‹"
RPROMPT
=
'%{$fg_bold[red]%}‹$(rvm_current)›%{$reset_color%}'
ZSH_THEME_RUBY_PROMPT_SUFFIX
=
"›%{
$reset_color
%}"
else
if
which rbenv &> /dev/null
;
then
PROMPT
=
'
RPROMPT
=
'%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'
%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
fi
$ '
fi
RPROMPT
=
'$(ruby_prompt_info)'
themes/arrow.zsh-theme
View file @
0232ac4b
...
@@ -8,7 +8,7 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=""
...
@@ -8,7 +8,7 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
# See http://geoff.greer.fm/lscolors/
# See http
s
://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx"
export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx"
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=31;40:cd=31;40:su=31;40:sg=31;40:tw=31;40:ow=31;40:"
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=31;40:cd=31;40:su=31;40:sg=31;40:tw=31;40:ow=31;40:"
themes/avit.zsh-theme
View file @
0232ac4b
...
@@ -50,9 +50,7 @@ function _ruby_version() {
...
@@ -50,9 +50,7 @@ function _ruby_version() {
# use a neutral color, otherwise colors will vary according to time.
# use a neutral color, otherwise colors will vary according to time.
function _git_time_since_commit() {
function _git_time_since_commit() {
# Only proceed if there is actually a commit.
# Only proceed if there is actually a commit.
if git log -1 > /dev/null 2>&1; then
if last_commit=$(git log --pretty=format:'%at' -1 2> /dev/null); then
# Get the last commit.
last_commit=$(git log --pretty=format:'%at' -1 2> /dev/null)
now=$(date +%s)
now=$(date +%s)
seconds_since_last_commit=$((now-last_commit))
seconds_since_last_commit=$((now-last_commit))
...
@@ -65,7 +63,7 @@ function _git_time_since_commit() {
...
@@ -65,7 +63,7 @@ function _git_time_since_commit() {
sub_hours=$((hours % 24))
sub_hours=$((hours % 24))
sub_minutes=$((minutes % 60))
sub_minutes=$((minutes % 60))
if [ $hours -g
t
24 ]; then
if [ $hours -g
e
24 ]; then
commit_age="${days}d"
commit_age="${days}d"
elif [ $minutes -gt 60 ]; then
elif [ $minutes -gt 60 ]; then
commit_age="${sub_hours}h${sub_minutes}m"
commit_age="${sub_hours}h${sub_minutes}m"
...
@@ -104,7 +102,7 @@ ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}"
...
@@ -104,7 +102,7 @@ ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[white]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[white]%}"
# LS colors, made with http://geoff.greer.fm/lscolors/
# LS colors, made with http
s
://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxegedabagacad"
export LSCOLORS="exfxcxdxbxegedabagacad"
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export GREP_COLOR='1;33'
export GREP_COLOR='1;33'
themes/bira.zsh-theme
View file @
0232ac4b
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
# ZSH Theme - Preview: http
s
://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
if [[ $UID -eq 0 ]]; then
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}'
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m
%{$reset_color%}'
local user_symbol='#'
local user_symbol='#'
else
else
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m
%{$reset_color%}'
local user_symbol='$'
local user_symbol='$'
fi
fi
local current_dir='%{$terminfo[bold]$fg[blue]%}%~%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%}%~ %{$reset_color%}'
local rvm_ruby=''
local git_branch='$(git_prompt_info)'
if which rvm-prompt &> /dev/null; then
local rvm_ruby='$(ruby_prompt_info)'
rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
local venv_prompt='$(virtualenv_prompt_info)'
else
if which rbenv &> /dev/null; then
rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
fi
fi
local git_branch='$(git_prompt_info)%{$reset_color%}'
PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
PROMPT="╭─${venv_prompt}${user_host}${current_dir}${rvm_ruby}${git_branch}
╰─%B${user_symbol}%b "
╰─%B${user_symbol}%b "
RP
S1
="%B${return_code}%b"
RP
ROMPT
="%B${return_code}%b"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹"
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}"
ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
themes/candy-kingdom.zsh-theme
View file @
0232ac4b
...
@@ -17,7 +17,7 @@ function box_name {
...
@@ -17,7 +17,7 @@ function box_name {
}
}
PROMPT='
PROMPT='
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}
${PWD/#$HOME/~}
%{$reset_color%}$(hg_prompt_info)$(git_prompt_info)
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}
%~
%{$reset_color%}$(hg_prompt_info)$(git_prompt_info)
%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ '
%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ '
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[magenta]%}branch: "
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[magenta]%}branch: "
...
...
themes/clean.zsh-theme
View file @
0232ac4b
...
@@ -9,6 +9,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
...
@@ -9,6 +9,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
# LS colors, made with http://geoff.greer.fm/lscolors/
# LS colors, made with http
s
://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
themes/cloud.zsh-theme
View file @
0232ac4b
...
@@ -6,5 +6,5 @@ PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[gr
...
@@ -6,5 +6,5 @@ PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[gr
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡ %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
\ No newline at end of file
themes/crunch.zsh-theme
View file @
0232ac4b
...
@@ -29,13 +29,9 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗"
...
@@ -29,13 +29,9 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗"
# Our elements:
# Our elements:
CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}"
CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}"
if [ -e ~/.rvm/bin/rvm-prompt ]; then
ZSH_THEME_RUBY_PROMPT_PREFIX="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR"
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
ZSH_THEME_RUBY_PROMPT_SUFFIX="$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
else
CRUNCH_RVM_='$(ruby_prompt_info)'
if which rbenv &> /dev/null; then
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(rbenv version | sed -e 's/ (set.*$//' -e 's/^ruby-//')}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
fi
fi
CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) "
CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) "
CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ "
CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ "
...
...
themes/dallas.zsh-theme
View file @
0232ac4b
...
@@ -2,14 +2,6 @@
...
@@ -2,14 +2,6 @@
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
if [ -e ~/.rvm/bin/rvm-prompt ]; then
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
else
if which rbenv &> /dev/null; then
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg[white]%}]%{$reset_color%}"
fi
fi
# Grab the current machine name: muscato
# Grab the current machine name: muscato
DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
# Grab the current filepath, use shortcuts: ~/Desktop
# Grab the current filepath, use shortcuts: ~/Desktop
...
@@ -28,5 +20,8 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
...
@@ -28,5 +20,8 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
# Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
# Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[white]%}[%{$fg[magenta]%}"
ZSH_THEME_RUBY_PROMPT_SUFFIX="%{$fg[white]%}]%{$reset_color%}"
# Put it all together!
# Put it all together!
PROMPT="$DALLAS_CURRENT_TIME_
$DALLAS_CURRENT_RUBY_
$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "
PROMPT="$DALLAS_CURRENT_TIME_
\$(ruby_prompt_info)
$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "
themes/dst.zsh-theme
View file @
0232ac4b
...
@@ -11,6 +11,6 @@ function prompt_char {
...
@@ -11,6 +11,6 @@ function prompt_char {
PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
)
)
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
%_
$(prompt_char) '
$(prompt_char) '
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
themes/dstufft.zsh-theme
View file @
0232ac4b
...
@@ -9,7 +9,7 @@ function virtualenv_info {
...
@@ -9,7 +9,7 @@ function virtualenv_info {
}
}
PROMPT='
PROMPT='
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}
${PWD/#$HOME/~}
%{$reset_color%}$(git_prompt_info)
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}
%~
%{$reset_color%}$(git_prompt_info)
$(virtualenv_info)$(prompt_char) '
$(virtualenv_info)$(prompt_char) '
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
...
...
themes/duellj.zsh-theme
View file @
0232ac4b
# user, host, full path, and time/date
# user, host, full path, and time/date
# on two lines for easier vgrepping
# on two lines for easier vgrepping
# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
# entry in a nice long thread on the Arch Linux forums: http
s
://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;34m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}%!%{\e[0;34m%}%B]%b%{\e[0m%}
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;34m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}%!%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]%{\e[0m%}%b '
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]%{\e[0m%}%b '
RPROMPT='[%*]'
RPROMPT='[%*]'
...
...
themes/emotty.zsh-theme
View file @
0232ac4b
...
@@ -68,6 +68,10 @@ prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
...
@@ -68,6 +68,10 @@ prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
setopt promptsubst
setopt promptsubst
# Workaround for zsh 5.2 release (kudos to @timothybasanov)
autoload +X VCS_INFO_nvcsformats
functions[VCS_INFO_nvcsformats]
=
${
functions
[VCS_INFO_nvcsformats]/local -a msgs/
}
autoload
-U
add-zsh-hook
autoload
-U
add-zsh-hook
autoload
-Uz
vcs_info
autoload
-Uz
vcs_info
...
...
themes/fino-time.zsh-theme
View file @
0232ac4b
...
@@ -25,15 +25,16 @@ function box_name {
...
@@ -25,15 +25,16 @@ function box_name {
}
}
local rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}'
local rvm_ruby='using%{$FG[243]%}$(ruby_prompt_info)'
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
local git_info='$(git_prompt_info)'
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}
${current_dir}
%{$reset_color%}${git_info} %{$FG[239]%}
using%{$FG[243]%}
${rvm_ruby} %D - %*
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}
%~
%{$reset_color%}${git_info} %{$FG[239]%}${rvm_ruby} %D - %*
╰─$(virtualenv_info)$(prompt_char) "
╰─$(virtualenv_info)$(prompt_char) "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"
ZSH_THEME_RUBY_PROMPT_PREFIX="‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
themes/fino.zsh-theme
View file @
0232ac4b
...
@@ -20,24 +20,17 @@ function box_name {
...
@@ -20,24 +20,17 @@ function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
}
}
local ruby_env=''
local ruby_env='using%{$FG[243]%} $(ruby_prompt_info)'
if which rvm-prompt &> /dev/null; then
ruby_env=' ‹$(rvm-prompt i v g)›%{$reset_color%}'
else
if which rbenv &> /dev/null; then
ruby_env=' ‹$(rbenv version-name)›%{$reset_color%}'
fi
fi
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
local git_info='$(git_prompt_info)'
local prompt_char='$(prompt_char)'
local prompt_char='$(prompt_char)'
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}
${current_dir}
%{$reset_color%}${git_info} %{$FG[239]%}
using%{$FG[243]%}
${ruby_env}
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}
%~
%{$reset_color%}${git_info} %{$FG[239]%}${ruby_env}
╰─${prompt_char}%{$reset_color%} "
╰─${prompt_char}%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"
ZSH_THEME_RUBY_PROMPT_PREFIX="‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
themes/fishy.zsh-theme
View file @
0232ac4b
...
@@ -14,7 +14,7 @@ PROMPT='%n@%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>)
...
@@ -14,7 +14,7 @@ PROMPT='%n@%m %{$fg[$user_color]%}$(_fishy_collapsed_wd)%{$reset_color%}%(!.#.>)
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
RPROMPT='${return_status}$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
RPROMPT=
"${RPROMPT}"
'${return_status}$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=" "
ZSH_THEME_GIT_PROMPT_PREFIX=" "
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
...
...
Prev
1
…
16
17
18
19
20
21
22
23
Next
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