mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Use a vcs library and add a Mercurial plugin
Move git_* functions to vcs_* to allow for better plugin support Modify plugins to use the new function names and declare new variable names, so ZSH_THEME_GIT_* variables are ZSH_THEME_VCS_* and git_prompt_info() is vcs_prompt_info()
This commit is contained in:
parent
2e9492969b
commit
b6bb141649
62 changed files with 304 additions and 295 deletions
32
lib/git.zsh
32
lib/git.zsh
|
|
@ -1,14 +1,22 @@
|
||||||
# get the name of the branch we are on
|
# get the name of the branch we are on
|
||||||
|
|
||||||
|
VCS+="git"
|
||||||
|
|
||||||
|
function git_check() {
|
||||||
|
git status -s > /dev/null 2>&1
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
function git_prompt_info() {
|
function git_prompt_info() {
|
||||||
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
|
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
echo "${(e)ZSH_THEME_VCS_PROMPT_PREFIX}${ref#refs/heads/}$(parse_git_dirty)${ZSH_THEME_VCS_PROMPT_SUFFIX}"
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_git_dirty () {
|
parse_git_dirty () {
|
||||||
if [[ -n $(git status -s 2> /dev/null) ]]; then
|
if [[ -n $(git status -s 2> /dev/null) ]]; then
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
echo "$ZSH_THEME_VCS_PROMPT_DIRTY"
|
||||||
else
|
else
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
echo "$ZSH_THEME_VCS_PROMPT_CLEAN"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -17,28 +25,28 @@ git_prompt_status() {
|
||||||
INDEX=$(git status --porcelain 2> /dev/null)
|
INDEX=$(git status --porcelain 2> /dev/null)
|
||||||
STATUS=""
|
STATUS=""
|
||||||
if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_UNTRACKED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^A ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^A ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_ADDED$STATUS"
|
||||||
elif $(echo "$INDEX" | grep '^M ' &> /dev/null); then
|
elif $(echo "$INDEX" | grep '^M ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_ADDED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_MODIFIED$STATUS"
|
||||||
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
|
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_MODIFIED$STATUS"
|
||||||
elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then
|
elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_MODIFIED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^R ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^R ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_RENAMED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_DELETED$STATUS"
|
||||||
fi
|
fi
|
||||||
if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
|
if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
|
||||||
STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS"
|
STATUS="$ZSH_THEME_VCS_PROMPT_UNMERGED$STATUS"
|
||||||
fi
|
fi
|
||||||
echo $STATUS
|
echo $STATUS
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ fpath=($ZSH/functions $fpath)
|
||||||
|
|
||||||
# Load all of the config files in ~/oh-my-zsh that end in .zsh
|
# Load all of the config files in ~/oh-my-zsh that end in .zsh
|
||||||
# TIP: Add files you don't want in git to .gitignore
|
# TIP: Add files you don't want in git to .gitignore
|
||||||
|
VCS=()
|
||||||
for config_file ($ZSH/lib/*.zsh) source $config_file
|
for config_file ($ZSH/lib/*.zsh) source $config_file
|
||||||
|
|
||||||
# Load all of your custom configurations from custom/
|
# Load all of your custom configurations from custom/
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
PROMPT='%{$fg[blue]%}%n%{$reset_color%} on %{$fg[red]%}%M%{$reset_color%} in %{$fg[blue]%}%~%b%{$reset_color%}$(git_time_since_commit)$(git_prompt_info)
|
PROMPT='%{$fg[blue]%}%n%{$reset_color%} on %{$fg[red]%}%M%{$reset_color%} in %{$fg[blue]%}%~%b%{$reset_color%}$(git_time_since_commit)$(vcs_prompt_info)
|
||||||
$ '
|
$ '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[white]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%})"
|
||||||
|
|
||||||
# Text to display if the branch is dirty
|
# Text to display if the branch is dirty
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
||||||
|
|
||||||
# Text to display if the branch is clean
|
# Text to display if the branch is clean
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
# Colors vary depending on time lapsed.
|
# Colors vary depending on time lapsed.
|
||||||
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
|
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
|
||||||
|
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
|
PROMPT='%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(vcs_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
|
||||||
|
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%c ➤ %{$reset_color%}'
|
PROMPT='%{$fg[$NCOLOR]%}%c ➤ %{$reset_color%}'
|
||||||
RPROMPT='%{$fg[$NCOLOR]%}%p $(git_prompt_info)%{$reset_color%}'
|
RPROMPT='%{$fg[$NCOLOR]%}%p $(vcs_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
ZSH_THEME_VCS_PROMPT_SUFFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="*"
|
ZSH_THEME_VCS_PROMPT_DIRTY="*"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
# See http://geoff.greer.fm/lscolors/
|
# See http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx"
|
export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color
|
PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(vcs_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color
|
||||||
$ '
|
$ '
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green]("
|
ZSH_THEME_VCS_PROMPT_PREFIX="$fg_bold[green]("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="✔"
|
ZSH_THEME_VCS_PROMPT_CLEAN="✔"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="✗"
|
ZSH_THEME_VCS_PROMPT_DIRTY="✗"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
# the svn plugin has to be activated for this to work.
|
# the svn plugin has to be activated for this to work.
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}'
|
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(vcs_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'"(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%} ✗ %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%} ✗ %{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) "
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%}) "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
||||||
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
|
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
|
||||||
local rvm_ruby='%{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v g)›%{$reset_color%}'
|
local rvm_ruby='%{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v g)›%{$reset_color%}'
|
||||||
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
local git_branch='$(vcs_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
|
PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
|
||||||
╰─%B$%b "
|
╰─%B$%b "
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%I:%M:%S]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\
|
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%I:%M:%S]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(vcs_prompt_info)\
|
||||||
%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '
|
%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[green]%}["
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="]%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="white"; fi
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="white"; fi
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
|
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(vcs_prompt_info)%(!.#.$) '
|
||||||
RPROMPT='[%*]'
|
RPROMPT='[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[yellow]%}%B"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[yellow]%}%B"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
# LS colors, made with http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg_bold[cyan]%}☁ %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
PROMPT='%{$fg_bold[cyan]%}☁ %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(vcs_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[green]%}]"
|
||||||
|
|
|
||||||
|
|
@ -8,19 +8,19 @@ DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(~/.rvm/bin/rvm-prompt i
|
||||||
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
|
||||||
# Append the current git branch, if in a git repository: ~aw@master
|
# Append the current git branch, if in a git repository: ~aw@master
|
||||||
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(vcs_prompt_info)%{$reset_color%}"
|
||||||
# Grab the current username: dallas
|
# Grab the current username: dallas
|
||||||
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
||||||
# Use a % for normal users and a # for privelaged (root) users.
|
# Use a % for normal users and a # for privelaged (root) users.
|
||||||
DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
||||||
# For the git prompt, use a white @ and blue text for the branch name
|
# For the git prompt, use a white @ and blue text for the branch name
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
|
||||||
# Close it all off by resetting the color and styles.
|
# Close it all off by resetting the color and styles.
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
# Do nothing if the branch is clean (no changes).
|
# Do nothing if the branch is clean (no changes).
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_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_VCS_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
|
||||||
|
|
||||||
# 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_$DALLAS_CURRENT_RUBY_$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# meh. Dark Blood Rewind, a new beginning.
|
# meh. Dark Blood Rewind, a new beginning.
|
||||||
|
|
||||||
PROMPT=$'%{$fg[red]%}┌[%{$fg_bold[white]%}%n%{$reset_color%}%{$fg[red]%}@%{$fg_bold[white]%}%m%{$reset_color%}%{$fg[red]%}] [%{$fg_bold[white]%}/dev/%y%{$reset_color%}%{$fg[red]%}] %{$(git_prompt_info)%}%(?,,%{$fg[red]%}[%{$fg_bold[white]%}%?%{$reset_color%}%{$fg[red]%}])
|
PROMPT=$'%{$fg[red]%}┌[%{$fg_bold[white]%}%n%{$reset_color%}%{$fg[red]%}@%{$fg_bold[white]%}%m%{$reset_color%}%{$fg[red]%}] [%{$fg_bold[white]%}/dev/%y%{$reset_color%}%{$fg[red]%}] %{$(vcs_prompt_info)%}%(?,,%{$fg[red]%}[%{$fg_bold[white]%}%?%{$reset_color%}%{$fg[red]%}])
|
||||||
%{$fg[red]%}└[%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[red]%}]>%{$reset_color%} '
|
%{$fg[red]%}└[%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[red]%}]>%{$reset_color%} '
|
||||||
PS2=$' %{$fg[red]%}|>%{$reset_color%} '
|
PS2=$' %{$fg[red]%}|>%{$reset_color%} '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}[%{$fg_bold[white]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[red]%}[%{$fg_bold[white]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[red]%}] "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}%{$fg[red]%}] "
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Copied and modified from the oh-my-zsh theme from geoffgarside
|
# Copied and modified from the oh-my-zsh theme from geoffgarside
|
||||||
# Red server name, green cwd, blue git status
|
# Red server name, green cwd, blue git status
|
||||||
|
|
||||||
PROMPT='%{$fg[red]%}%m%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %(!.#.$) '
|
PROMPT='%{$fg[red]%}%m%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(vcs_prompt_info) %(!.#.$) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[blue]%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -26,14 +26,14 @@ local host="@${host_repr[$(hostname)]:-$(hostname)}%{$reset_color%}"
|
||||||
# Compacted $PWD
|
# Compacted $PWD
|
||||||
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
|
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
|
||||||
|
|
||||||
PROMPT='${time} ${user}${host} ${pwd} $(git_prompt_info)'
|
PROMPT='${time} ${user}${host} ${pwd} $(vcs_prompt_info)'
|
||||||
|
|
||||||
# i would prefer 1 icon that shows the "most drastic" deviation from HEAD,
|
# i would prefer 1 icon that shows the "most drastic" deviation from HEAD,
|
||||||
# but lets see how this works out
|
# but lets see how this works out
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}?%{$fg[green]%}%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}?%{$fg[green]%}%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[green]%}"
|
||||||
|
|
||||||
# elaborate exitcode on the right when >0
|
# elaborate exitcode on the right when >0
|
||||||
return_code_enabled="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
return_code_enabled="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[green]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[red]%}!"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
function prompt_char {
|
function prompt_char {
|
||||||
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
||||||
|
|
@ -10,7 +10,7 @@ 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%}$(vcs_prompt_info)
|
||||||
%_ $(prompt_char) '
|
%_ $(prompt_char) '
|
||||||
|
|
||||||
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ 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]%}${PWD/#$HOME/~}%{$reset_color%}$(vcs_prompt_info)
|
||||||
$(virtualenv_info)$(prompt_char) '
|
$(virtualenv_info)$(prompt_char) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%}!"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,16 @@ if [[ -s ~/.rvm/scripts/rvm ]] ; then
|
||||||
RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
|
RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="]%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
|
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
|
||||||
git_custom_status() {
|
git_custom_status() {
|
||||||
local cb=$(current_branch)
|
local cb=$(current_branch)
|
||||||
if [ -n "$cb" ]; then
|
if [ -n "$cb" ]; then
|
||||||
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
echo "$(parse_vcs_dirty)$ZSH_THEME_VCS_PROMPT_PREFIX$(current_branch)$ZSH_THEME_VCS_PROMPT_SUFFIX"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg_bold[white]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg_bold[white]%}%c %{$fg_bold[blue]%}$(vcs_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'"(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
|
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
|
||||||
PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) '
|
PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) '
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%})$(git_prompt_info)'
|
RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%})$(vcs_prompt_info)'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[cyan]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@ fi
|
||||||
|
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%m%{${fg_bold[magenta]}%} :: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}%#%{${reset_color}%} '
|
PROMPT='%m%{${fg_bold[magenta]}%} :: %{$reset_color%}%{${fg[green]}%}%3~ $(vcs_prompt_info)%{${fg_bold[$CARETCOLOR]}%}%#%{${reset_color}%} '
|
||||||
|
|
||||||
RPS1='$(vi_mode_prompt_info) ${return_code}'
|
RPS1='$(vi_mode_prompt_info) ${return_code}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[cyan]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
||||||
MODE_INDICATOR="%{$fg_bold[magenta]%}<%{$reset_color%}%{$fg[magenta]%}<<%{$reset_color%}"
|
MODE_INDICATOR="%{$fg_bold[magenta]%}<%{$reset_color%}%{$fg[magenta]%}<<%{$reset_color%}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
# Copied from old version of tonotdo's theme. LSCOLORS modified.
|
# Copied from old version of tonotdo's theme. LSCOLORS modified.
|
||||||
PROMPT='%{$fg_no_bold[cyan]%}%n%{$fg_no_bold[magenta]%}•%{$fg_no_bold[green]%}%3~$(git_prompt_info)%{$reset_color%}» '
|
PROMPT='%{$fg_no_bold[cyan]%}%n%{$fg_no_bold[magenta]%}•%{$fg_no_bold[green]%}%3~$(vcs_prompt_info)%{$reset_color%}» '
|
||||||
RPROMPT='[%*]'
|
RPROMPT='[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
ZSH_THEME_VCS_PROMPT_SUFFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}⚡%{$fg_bold[blue]%})"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_bold[yellow]%}⚡%{$fg_bold[blue]%})"
|
||||||
|
|
||||||
export LSCOLORS="exfxcxdxbxegedabagacad"
|
export LSCOLORS="exfxcxdxbxegedabagacad"
|
||||||
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:'
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# ZSH Theme - Preview: http://img.skitch.com/20091113-qqtd3j8xinysujg5ugrsbr7x1y.jpg
|
# ZSH Theme - Preview: http://img.skitch.com/20091113-qqtd3j8xinysujg5ugrsbr7x1y.jpg
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[green]%}%m%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b '
|
PROMPT='%{$fg[green]%}%m%{$reset_color%} %2~ $(vcs_prompt_info)%{$reset_color%}%B»%b '
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}: '
|
PROMPT='%{$fg[cyan]%}%c%{$fg_bold[blue]%}$(vcs_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}: '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[blue]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="(%{$fg[blue]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%#%{$reset_color%} '
|
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(vcs_prompt_info)%#%{$reset_color%} '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
ZSH_THEME_VCS_PROMPT_PREFIX="("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=") "
|
ZSH_THEME_VCS_PROMPT_SUFFIX=") "
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# PROMPT="[%*] %n:%c $(git_prompt_info)%(!.#.$) "
|
# PROMPT="[%*] %n:%c $(vcs_prompt_info)%(!.#.$) "
|
||||||
PROMPT='[%*] %{$fg[cyan]%}%n%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %(!.#.$) '
|
PROMPT='[%*] %{$fg[cyan]%}%n%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(vcs_prompt_info) %(!.#.$) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}git:("
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[yellow]%}"'$(vcs_name)'"("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(vcs_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
ZSH_THEME_VCS_PROMPT_PREFIX="("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
ZSH_THEME_VCS_PROMPT_DIRTY=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
RPROMPT='$(git_prompt_status)%{$reset_color%}'
|
RPROMPT='$(vcs_prompt_status)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
ZSH_THEME_VCS_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
ZSH_THEME_VCS_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗"
|
ZSH_THEME_VCS_PROMPT_DELETED="%{$fg[red]%} ✗"
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
ZSH_THEME_VCS_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
ZSH_THEME_VCS_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[white]%}$(git_prompt_info)%{$fg_bold[white]%} % %{$reset_color%}'
|
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[white]%}$(vcs_prompt_info)%{$fg_bold[white]%} % %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'"(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[white]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[white]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[white]%})"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
grey='\e[0;90m'
|
grey='\e[0;90m'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$grey%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$grey%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$grey%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$grey%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$grey%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$grey%})"
|
||||||
|
|
||||||
function josh_prompt {
|
function josh_prompt {
|
||||||
(( spare_width = ${COLUMNS} ))
|
(( spare_width = ${COLUMNS} ))
|
||||||
|
|
@ -31,7 +31,7 @@ function josh_prompt {
|
||||||
prompt=" $prompt"
|
prompt=" $prompt"
|
||||||
done
|
done
|
||||||
|
|
||||||
prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(rvm_prompt_info)%{$reset_color%} $(git_prompt_info)"
|
prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(rvm_prompt_info)%{$reset_color%} $(vcs_prompt_info)"
|
||||||
|
|
||||||
echo $prompt
|
echo $prompt
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@ if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
|
PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
|
||||||
$(git_prompt_info)\
|
$(vcs_prompt_info)\
|
||||||
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
RPS1='${return_code}'
|
RPS1='${return_code}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="⚡"
|
ZSH_THEME_VCS_PROMPT_DIRTY="⚡"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ function get_host {
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='> '
|
PROMPT='> '
|
||||||
RPROMPT='%~$(git_prompt_info)$(get_host)'
|
RPROMPT='%~$(vcs_prompt_info)$(get_host)'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
ZSH_THEME_VCS_PROMPT_PREFIX="("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[green]%}%c \
|
PROMPT='%{$fg[green]%}%c \
|
||||||
$(git_prompt_info)\
|
$(vcs_prompt_info)\
|
||||||
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
RPS1='%{$fg[blue]%}%~%{$reset_color%} ${return_code} '
|
RPS1='%{$fg[blue]%}%~%{$reset_color%} ${return_code} '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}:: %{$fg[yellow]%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$reset_color%}:: %{$fg[yellow]%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[yellow]%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[yellow]%}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# ZSH Theme - Preview: http://cl.ly/350F0F0k1M2y3A2i3p1S
|
# ZSH Theme - Preview: http://cl.ly/350F0F0k1M2y3A2i3p1S
|
||||||
|
|
||||||
PROMPT='λ %~/ $(git_prompt_info)%{$reset_color%}'
|
PROMPT='λ %~/ $(vcs_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[green]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
local return_code="%(?..%{$fg_bold[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg_bold[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%} $(git_prompt_info)%{$reset_color%}%B»%b '
|
PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%} $(vcs_prompt_info)%{$reset_color%}%B»%b '
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=") %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(git_prompt_info)%{$reset_color%}%B$%b '
|
PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(vcs_prompt_info)%{$reset_color%}%B$%b '
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(git_prompt_info)%{$reset_color%}%B$%b '
|
PROMPT='%{$fg[green]%}%~%{$reset_color%} %{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%} $(vcs_prompt_info)%{$reset_color%}%B$%b '
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Theme with full path names and hostname
|
# Theme with full path names and hostname
|
||||||
# Handy if you work on different servers all the time;
|
# Handy if you work on different servers all the time;
|
||||||
PROMPT='%{$fg[cyan]%}%n%{$reset_color%}@%{$fg[yellow]%}%M:%{$fg[green]%}%/%{$reset_color%} $(git_prompt_info) %(!.#.$) '
|
PROMPT='%{$fg[cyan]%}%n%{$reset_color%}@%{$fg[yellow]%}%M:%{$fg[green]%}%/%{$reset_color%} $(vcs_prompt_info) %(!.#.$) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git:("
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[cyan]%}"'$(vcs_name)'"("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX=")%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg_bold[magenta]%}%1~$(git_prompt_info) %{$fg_bold[magenta]%}%# %{$reset_color%}'
|
PROMPT='%{$fg_bold[magenta]%}%1~$(vcs_prompt_info) %{$fg_bold[magenta]%}%# %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}["
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[yellow]%}["
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="*]"
|
ZSH_THEME_VCS_PROMPT_DIRTY="*]"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="]"
|
ZSH_THEME_VCS_PROMPT_CLEAN="]"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT='%{$fg_bold[red]%}%m%{$reset_color%}:%{$fg[cyan]%}%c%{$reset_color%}:%# '
|
PROMPT='%{$fg_bold[red]%}%m%{$reset_color%}:%{$fg[cyan]%}%c%{$reset_color%}:%# '
|
||||||
RPROMPT='%{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}% '
|
RPROMPT='%{$fg_bold[green]%}$(vcs_prompt_info)%{$reset_color%}% '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="<%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="<%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$fg[green]%}>%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$fg[green]%}>%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}>"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[green]%}>"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT='%F{green}%2c%F{blue} [%f '
|
PROMPT='%F{green}%2c%F{blue} [%f '
|
||||||
RPROMPT='$(git_prompt_info) %F{blue}] %F{green}%D{%L:%M} %F{yellow}%D{%p}%f'
|
RPROMPT='$(vcs_prompt_info) %F{blue}] %F{green}%D{%L:%M} %F{yellow}%D{%p}%f'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%F{yellow}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%f"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}*%f"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %F{red}*%f"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
|
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(vcs_prompt_info)%(!.#.$) '
|
||||||
RPROMPT='[%*]'
|
RPROMPT='[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}%B"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}%B"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_bold[red]%}"
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
# LS colors, made with http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@ if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
||||||
|
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{$fg[$NCOLOR]%}%B%n@%m%b%{$reset_color%} %{$fg[white]%}%B${PWD/#$HOME/~}%b%{$reset_color%}
|
%{$fg[$NCOLOR]%}%B%n@%m%b%{$reset_color%} %{$fg[white]%}%B${PWD/#$HOME/~}%b%{$reset_color%}
|
||||||
$(git_prompt_info)%(!.#.$) '
|
$(vcs_prompt_info)%(!.#.$) '
|
||||||
RPROMPT='[%*]'
|
RPROMPT='[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[yellow]%}%B"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_no_bold[yellow]%}%B"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}*"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_bold[red]%}*"
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
# LS colors, made with http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%n@%m %{$fg[cyan]%}%~
|
%n@%m %{$fg[cyan]%}%~
|
||||||
%? $(git_prompt_info)%{$fg_bold[blue]%}%% %{$reset_color%}'
|
%? $(vcs_prompt_info)%{$fg_bold[blue]%}%% %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- sh -*- vim:set ft=sh ai et sw=4 sts=4:
|
# -*- sh -*- vim:set ft=sh ai et sw=4 sts=4:
|
||||||
# It might be bash like, but I can't have my co-workers knowing I use zsh
|
# It might be bash like, but I can't have my co-workers knowing I use zsh
|
||||||
PROMPT='%{$fg[green]%}%n@%m:%{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%(!.#.$) '
|
PROMPT='%{$fg[green]%}%n@%m:%{$fg_bold[blue]%}%2~ $(vcs_prompt_info)%{$reset_color%}%(!.#.$) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[red]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="›%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ function prompt_char {
|
||||||
RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
|
RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
|
||||||
|
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
|
%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(vcs_prompt_info)
|
||||||
$(prompt_char) '
|
$(prompt_char) '
|
||||||
RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
|
RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(vcs_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'":(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT='%{$fg_bold[green]%}%h %{$fg[cyan]%}%2~ %{$fg_bold[blue]%}$(git_prompt_info) %{$reset_color%}» '
|
PROMPT='%{$fg_bold[green]%}%h %{$fg[cyan]%}%2~ %{$fg_bold[blue]%}$(vcs_prompt_info) %{$reset_color%}» '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX='$(vcs_name)'"(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,38 +11,38 @@ if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
|
||||||
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
|
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
|
||||||
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
|
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
|
||||||
|
|
||||||
PROMPT='%{$fg[cyan]%}%c$(git_prompt_info) %(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}❯)%{$reset_color%} '
|
PROMPT='%{$fg[cyan]%}%c$(vcs_prompt_info) %(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}❯)%{$reset_color%} '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}git%{$reset_color%}:%{$fg[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[blue]%}"'$(vcs_name)'"%{$reset_color%}:%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
ZSH_THEME_VCS_PROMPT_DIRTY=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
RPROMPT='${return_status}$(git_prompt_status)%{$reset_color%}'
|
RPROMPT='${return_status}$(vcs_prompt_status)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
|
ZSH_THEME_VCS_PROMPT_ADDED="%{$fg[green]%} ✚"
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
|
ZSH_THEME_VCS_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
|
ZSH_THEME_VCS_PROMPT_DELETED="%{$fg[red]%} ✖"
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
|
ZSH_THEME_VCS_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
|
ZSH_THEME_VCS_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
|
||||||
else
|
else
|
||||||
MODE_INDICATOR="❮❮❮"
|
MODE_INDICATOR="❮❮❮"
|
||||||
local return_status="%(?::⏎)"
|
local return_status="%(?::⏎)"
|
||||||
|
|
||||||
PROMPT='%c$(git_prompt_info) %(!.#.❯) '
|
PROMPT='%c$(vcs_prompt_info) %(!.#.❯) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" git:"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" "'$(vcs_name)'
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
ZSH_THEME_VCS_PROMPT_SUFFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
ZSH_THEME_VCS_PROMPT_DIRTY=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
RPROMPT='${return_status}$(git_prompt_status)'
|
RPROMPT='${return_status}$(vcs_prompt_status)'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
|
ZSH_THEME_VCS_PROMPT_ADDED=" ✚"
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
|
ZSH_THEME_VCS_PROMPT_MODIFIED=" ✹"
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
|
ZSH_THEME_VCS_PROMPT_DELETED=" ✖"
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
|
ZSH_THEME_VCS_PROMPT_RENAMED=" ➜"
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
|
ZSH_THEME_VCS_PROMPT_UNMERGED=" ═"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED=" ✭"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
# Preview - http://www.flickr.com/photos/adelcampo/4556482563/sizes/o/
|
# Preview - http://www.flickr.com/photos/adelcampo/4556482563/sizes/o/
|
||||||
# based on robbyrussell's shell but louder!
|
# based on robbyrussell's shell but louder!
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[blue]%}$(git_prompt_info) %F{208}%c%f
|
PROMPT='%{$fg_bold[blue]%}$(vcs_prompt_info) %F{208}%c%f
|
||||||
%{$fg_bold[white]%}%# %{$reset_color%}'
|
%{$fg_bold[white]%}%# %{$reset_color%}'
|
||||||
RPROMPT='%B%F{208}%n%f%{$fg_bold[white]%}@%F{039}%m%f%{$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_VCS_PROMPT_PREFIX="%F{154}±|%f%F{124}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}%B✘%b%F{154}|%f%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %{$fg[red]%}%B✘%b%F{154}|%f%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%F{154}|"
|
ZSH_THEME_VCS_PROMPT_CLEAN=" %{$fg[green]%}✔%F{154}|"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ PROMPT_BRACKET_END='%{$fg_bold[white]%}]'
|
||||||
PROMPT_USER='%{$fg_bold[white]%}%n'
|
PROMPT_USER='%{$fg_bold[white]%}%n'
|
||||||
PROMPT_SIGN='%{$reset_color%}%#'
|
PROMPT_SIGN='%{$reset_color%}%#'
|
||||||
|
|
||||||
GIT_PROMPT_INFO='$(git_prompt_info)'
|
GIT_PROMPT_INFO='$(vcs_prompt_info)'
|
||||||
|
|
||||||
# My current prompt looks like:
|
# My current prompt looks like:
|
||||||
# [host:current_dir] (git_prompt_info)
|
# [host:current_dir] (git_prompt_info)
|
||||||
|
|
@ -21,7 +21,7 @@ ${PROMPT_BRACKET_BEGIN}${PROMPT_USER}${PROMPT_BRACKET_END}${PROMPT_SIGN} "
|
||||||
#
|
#
|
||||||
# Git repository
|
# Git repository
|
||||||
#
|
#
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%}!"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=''
|
ZSH_THEME_VCS_PROMPT_CLEAN=''
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
PROMPT='%{$fg[magenta]%}[%c] %{$reset_color%}'
|
PROMPT='%{$fg[magenta]%}[%c] %{$reset_color%}'
|
||||||
|
|
||||||
RPROMPT='%{$fg[magenta]%}$(git_prompt_info)%{$reset_color%} $(git_prompt_status)%{$reset_color%}'
|
RPROMPT='%{$fg[magenta]%}$(vcs_prompt_info)%{$reset_color%} $(vcs_prompt_status)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
ZSH_THEME_VCS_PROMPT_PREFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
ZSH_THEME_VCS_PROMPT_SUFFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
ZSH_THEME_VCS_PROMPT_DIRTY=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
ZSH_THEME_VCS_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
ZSH_THEME_VCS_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗"
|
ZSH_THEME_VCS_PROMPT_DELETED="%{$fg[red]%} ✗"
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
ZSH_THEME_VCS_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
ZSH_THEME_VCS_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,13 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(git_prompt_info)
|
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(vcs_prompt_info)
|
||||||
$(virtualenv_info)$(prompt_char) '
|
$(virtualenv_info)$(prompt_char) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[green]%}!"
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
ZSH_THEME_VCS_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
. ~/bin/dotfiles/zsh/aliases
|
. ~/bin/dotfiles/zsh/aliases
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX=" %{$fg[green]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
|
ZSH_THEME_VCS_PROMPT_DIRTY=" %{$fg[red]%}⚡"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_VCS_PROMPT_CLEAN=""
|
||||||
|
|
||||||
function prompt_char {
|
function prompt_char {
|
||||||
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
||||||
|
|
@ -9,7 +9,7 @@ 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%}$(vcs_prompt_info)
|
||||||
%_$(prompt_char) '
|
%_$(prompt_char) '
|
||||||
|
|
||||||
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
PROMPT='%{$fg_no_bold[cyan]%}%n%{$fg_no_bold[magenta]%}➜%{$fg_no_bold[green]%}%3~$(git_prompt_info)%{$reset_color%}» '
|
PROMPT='%{$fg_no_bold[cyan]%}%n%{$fg_no_bold[magenta]%}➜%{$fg_no_bold[green]%}%3~$(vcs_prompt_info)%{$reset_color%}» '
|
||||||
RPROMPT='[%*]'
|
RPROMPT='[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
ZSH_THEME_VCS_PROMPT_SUFFIX=""
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}✗%{$fg_bold[blue]%})"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_bold[yellow]%}✗%{$fg_bold[blue]%})"
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
# LS colors, made with http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT='%{${fg_bold[yellow]}%}%n%{$reset_color%}%{${fg[yellow]}%}@%m%{$reset_color%} $(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
PROMPT='%{${fg_bold[yellow]}%}%n%{$reset_color%}%{${fg[yellow]}%}@%m%{$reset_color%} $(vcs_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
||||||
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[blue]%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}✗%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}✗%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
PROMPT='$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
PROMPT='$(vcs_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
||||||
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
|
ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg[blue]%}("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
|
ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
# 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://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
|
||||||
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\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%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
|
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\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%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
|
||||||
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <$(git_prompt_info)>%{\e[0m%}%b '
|
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <$(vcs_prompt_info)>%{\e[0m%}%b '
|
||||||
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue