parent
bd8d53adb0
commit
72a7a8a171
@ -1,86 +0,0 @@
|
|||||||
PROMPT='%{$fg[blue]%}%n%{$reset_color%} on %{$fg[red]%}%M%{$reset_color%} in %{$fg[blue]%}%~%b%{$reset_color%}$(git_time_since_commit)$(check_git_prompt_info)
|
|
||||||
$ '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
|
|
||||||
|
|
||||||
# Text to display if the branch is dirty
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
|
||||||
|
|
||||||
# Text to display if the branch is clean
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
# Colors vary depending on time lapsed.
|
|
||||||
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}"
|
|
||||||
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[cyan]%}"
|
|
||||||
|
|
||||||
|
|
||||||
# Git sometimes goes into a detached head state. git_prompt_info doesn't
|
|
||||||
# return anything in this case. So wrap it in another function and check
|
|
||||||
# for an empty string.
|
|
||||||
function check_git_prompt_info() {
|
|
||||||
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
||||||
if [[ -z $(git_prompt_info) ]]; then
|
|
||||||
echo "%{$fg[magenta]%}detached-head%{$reset_color%})"
|
|
||||||
else
|
|
||||||
echo "$(git_prompt_info)"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Determine if we are using a gemset.
|
|
||||||
function rvm_gemset() {
|
|
||||||
GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
|
|
||||||
if [[ -n $GEMSET ]]; then
|
|
||||||
echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
# Determine the time since last commit. If branch is clean,
|
|
||||||
# use a neutral color, otherwise colors will vary according to time.
|
|
||||||
function git_time_since_commit() {
|
|
||||||
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
||||||
# Only proceed if there is actually a commit.
|
|
||||||
if [[ $(git log 2>&1 > /dev/null | grep -c "^fatal: bad default revision") == 0 ]]; then
|
|
||||||
# Get the last commit.
|
|
||||||
last_commit=`git log --pretty=format:'%at' -1 2> /dev/null`
|
|
||||||
now=`date +%s`
|
|
||||||
seconds_since_last_commit=$((now-last_commit))
|
|
||||||
|
|
||||||
# Totals
|
|
||||||
MINUTES=$((seconds_since_last_commit / 60))
|
|
||||||
HOURS=$((seconds_since_last_commit/3600))
|
|
||||||
|
|
||||||
# Sub-hours and sub-minutes
|
|
||||||
DAYS=$((seconds_since_last_commit / 86400))
|
|
||||||
SUB_HOURS=$((HOURS % 24))
|
|
||||||
SUB_MINUTES=$((MINUTES % 60))
|
|
||||||
|
|
||||||
if [[ -n $(git status -s 2> /dev/null) ]]; then
|
|
||||||
if [ "$MINUTES" -gt 30 ]; then
|
|
||||||
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG"
|
|
||||||
elif [ "$MINUTES" -gt 10 ]; then
|
|
||||||
COLOR="$ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM"
|
|
||||||
else
|
|
||||||
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$HOURS" -gt 24 ]; then
|
|
||||||
echo "($(rvm_gemset)$COLOR${DAYS}d${SUB_HOURS}h${SUB_MINUTES}m%{$reset_color%}|"
|
|
||||||
elif [ "$MINUTES" -gt 60 ]; then
|
|
||||||
echo "($(rvm_gemset)$COLOR${HOURS}h${SUB_MINUTES}m%{$reset_color%}|"
|
|
||||||
else
|
|
||||||
echo "($(rvm_gemset)$COLOR${MINUTES}m%{$reset_color%}|"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL"
|
|
||||||
echo "($(rvm_gemset)$COLOR~|"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi
|
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%c ➤ %{$reset_color%}'
|
|
||||||
RPROMPT='%{$fg[$NCOLOR]%}%p $(git_prompt_info)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="*"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
# See http://geoff.greer.fm/lscolors/
|
|
||||||
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:"
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
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
|
|
||||||
$ '
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green]("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="✔"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="✗"
|
|
@ -1,18 +0,0 @@
|
|||||||
# 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%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%} ✗ %{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) "
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ZSH_PROMPT_BASE_COLOR="%{$fg_bold[blue]%}"
|
|
||||||
ZSH_THEME_REPO_NAME_COLOR="%{$fg_bold[red]%}"
|
|
||||||
|
|
||||||
ZSH_THEME_SVN_PROMPT_PREFIX="svn:("
|
|
||||||
ZSH_THEME_SVN_PROMPT_SUFFIX=")"
|
|
||||||
ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%} ✘ %{$reset_color%}"
|
|
||||||
ZSH_THEME_SVN_PROMPT_CLEAN=" "
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%I:%M:%S]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\
|
|
||||||
%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
@ -1,14 +0,0 @@
|
|||||||
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)%(!.#.$) '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[yellow]%}%B"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
|
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
|
||||||
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:'
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[cyan]%}☁ %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
|
|
@ -1,4 +0,0 @@
|
|||||||
# Based on evan's prompt
|
|
||||||
# Shows the exit status of the last command if non-zero
|
|
||||||
# Uses "#" instead of "»" when running with elevated privileges
|
|
||||||
PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . ${fg[red]}%? )%{${fg[blue]}%}»%{${reset_color}%} "
|
|
@ -1,26 +0,0 @@
|
|||||||
# Personalized!
|
|
||||||
|
|
||||||
# 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%}"
|
|
||||||
# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
|
|
||||||
DALLAS_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[magenta]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
|
|
||||||
# Grab the current machine name: muscato
|
|
||||||
DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
|
||||||
# Grab the current filepath, use shortcuts: ~/Desktop
|
|
||||||
# Append the current git branch, if in a git repository: ~aw@master
|
|
||||||
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
|
||||||
# Grab the current username: dallas
|
|
||||||
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
|
||||||
# Use a % for normal users and a # for privelaged (root) users.
|
|
||||||
DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
|
||||||
# For the git prompt, use a white @ and blue text for the branch name
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
|
|
||||||
# Close it all off by resetting the color and styles.
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
# Do nothing if the branch is clean (no changes).
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
# Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
|
|
||||||
|
|
||||||
# Put it all together!
|
|
||||||
PROMPT="$DALLAS_CURRENT_TIME_$DALLAS_CURRENT_RUBY_$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "
|
|
@ -1,9 +0,0 @@
|
|||||||
# 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]%}])
|
|
||||||
%{$fg[red]%}└[%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[red]%}]>%{$reset_color%} '
|
|
||||||
PS2=$' %{$fg[red]%}|>%{$reset_color%} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}[%{$fg_bold[white]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[red]%}] "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}"
|
|
@ -1,7 +0,0 @@
|
|||||||
# Copied and modified from the oh-my-zsh theme from geoffgarside
|
|
||||||
# Red server name, green cwd, blue git status
|
|
||||||
|
|
||||||
PROMPT='%{$fg[red]%}%m%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %(!.#.$) '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
|
@ -1,56 +0,0 @@
|
|||||||
# the idea of this theme is to contain a lot of info in a small string, by
|
|
||||||
# compressing some parts and colorcoding, which bring useful visual cues,
|
|
||||||
# while limiting the amount of colors and such to keep it easy on the eyes.
|
|
||||||
# When a command exited >0, the timestamp will be in red and the exit code
|
|
||||||
# will be on the right edge.
|
|
||||||
# The exit code visual cues will only display once.
|
|
||||||
# (i.e. they will be reset, even if you hit enter a few times on empty command prompts)
|
|
||||||
|
|
||||||
typeset -A host_repr
|
|
||||||
|
|
||||||
# translate hostnames into shortened, colorcoded strings
|
|
||||||
host_repr=('dieter-ws-a7n8x-arch' "%{$fg_bold[green]%}ws" 'dieter-p4sci-arch' "%{$fg_bold[blue]%}p4")
|
|
||||||
|
|
||||||
# local time, color coded by last return code
|
|
||||||
time_enabled="%(?.%{$fg[green]%}.%{$fg[red]%})%*%{$reset_color%}"
|
|
||||||
time_disabled="%{$fg[green]%}%*%{$reset_color%}"
|
|
||||||
time=$time_enabled
|
|
||||||
|
|
||||||
# user part, color coded by privileges
|
|
||||||
local user="%(!.%{$fg[blue]%}.%{$fg[blue]%})%n%{$reset_color%}"
|
|
||||||
|
|
||||||
# Hostname part. compressed and colorcoded per host_repr array
|
|
||||||
# if not found, regular hostname in default color
|
|
||||||
local host="@${host_repr[$(hostname)]:-$(hostname)}%{$reset_color%}"
|
|
||||||
|
|
||||||
# Compacted $PWD
|
|
||||||
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
|
|
||||||
|
|
||||||
PROMPT='${time} ${user}${host} ${pwd} $(git_prompt_info)'
|
|
||||||
|
|
||||||
# i would prefer 1 icon that shows the "most drastic" deviation from HEAD,
|
|
||||||
# but lets see how this works out
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}?%{$fg[green]%}%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
|
|
||||||
|
|
||||||
# elaborate exitcode on the right when >0
|
|
||||||
return_code_enabled="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
return_code_disabled=
|
|
||||||
return_code=$return_code_enabled
|
|
||||||
|
|
||||||
RPS1='${return_code}'
|
|
||||||
|
|
||||||
function accept-line-or-clear-warning () {
|
|
||||||
if [[ -z $BUFFER ]]; then
|
|
||||||
time=$time_disabled
|
|
||||||
return_code=$return_code_disabled
|
|
||||||
else
|
|
||||||
time=$time_enabled
|
|
||||||
return_code=$return_code_enabled
|
|
||||||
fi
|
|
||||||
zle accept-line
|
|
||||||
}
|
|
||||||
zle -N accept-line-or-clear-warning
|
|
||||||
bindkey '^M' accept-line-or-clear-warning
|
|
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
function prompt_char {
|
|
||||||
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
|
|
||||||
)
|
|
||||||
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
|
|
||||||
%_ $(prompt_char) '
|
|
||||||
|
|
||||||
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
|
@ -1,19 +0,0 @@
|
|||||||
function prompt_char {
|
|
||||||
git branch >/dev/null 2>/dev/null && echo '±' && return
|
|
||||||
hg root >/dev/null 2>/dev/null && echo 'Hg' && return
|
|
||||||
echo '○'
|
|
||||||
}
|
|
||||||
|
|
||||||
function virtualenv_info {
|
|
||||||
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT='
|
|
||||||
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
|
|
||||||
$(virtualenv_info)$(prompt_char) '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# user, host, full path, and time/date
|
|
||||||
# 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
|
|
||||||
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 '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
|
@ -1,19 +0,0 @@
|
|||||||
#RVM settings
|
|
||||||
if [[ -s ~/.rvm/scripts/rvm ]] ; then
|
|
||||||
RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
|
|
||||||
git_custom_status() {
|
|
||||||
local cb=$(current_branch)
|
|
||||||
if [ -n "$cb" ]; then
|
|
||||||
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT='$(git_custom_status)%{$fg[cyan]%}[%~% ]%{$reset_color%}%B$%b '
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg_bold[white]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,2 +0,0 @@
|
|||||||
# Evan describes this sexy prompt as: "a skinny, topless prompt"
|
|
||||||
PROMPT='%m :: %2~ %B»%b '
|
|
@ -1,5 +0,0 @@
|
|||||||
# Found on the ZshWiki
|
|
||||||
# http://zshwiki.org/home/config/prompt
|
|
||||||
#
|
|
||||||
|
|
||||||
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
|
|
@ -1,20 +0,0 @@
|
|||||||
# ZSH Theme emulating the Fish shell's default prompt.
|
|
||||||
|
|
||||||
local user_color='green'; [ $UID -eq 0 ] && user_color='red'
|
|
||||||
PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) '
|
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
||||||
|
|
||||||
local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
|
|
||||||
RPROMPT='${return_status}$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" "
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%}+"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[blue]%}!"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%}-"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[magenta]%}>"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[yellow]%}#"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%}?"
|
|
@ -1,12 +0,0 @@
|
|||||||
# 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%}» '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}⚡%{$fg_bold[blue]%})"
|
|
||||||
|
|
||||||
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:'
|
|
@ -1,10 +0,0 @@
|
|||||||
PROMPT=$'
|
|
||||||
%{$fg[blue]%}%/%{$reset_color%} $(git_prompt_info)%{$fg[white]%}[%n@%m]%{$reset_color%} %{$fg[white]%}[%T]%{$reset_color%}
|
|
||||||
%{$fg_bold[black]%}>%{$reset_color%} '
|
|
||||||
|
|
||||||
PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
@ -1,14 +0,0 @@
|
|||||||
# Taken from Tassilo's Blog
|
|
||||||
# http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
|
|
||||||
|
|
||||||
local blue_op="%{$fg[blue]%}[%{$reset_color%}"
|
|
||||||
local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
|
|
||||||
local path_p="${blue_op}%~${blue_cp}"
|
|
||||||
local user_host="${blue_op}%n@%m${blue_cp}"
|
|
||||||
local ret_status="${blue_op}%?${blue_cp}"
|
|
||||||
local hist_no="${blue_op}%h${blue_cp}"
|
|
||||||
local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
|
|
||||||
PROMPT="╭─${path_p}─${user_host}─${ret_status}─${hist_no}
|
|
||||||
╰─${blue_op}${smiley}${blue_cp} %# "
|
|
||||||
local cur_cmd="${blue_op}%_${blue_cp}"
|
|
||||||
PROMPT2="${cur_cmd}> "
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,19 +0,0 @@
|
|||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
|
|
||||||
git_custom_status() {
|
|
||||||
local cb=$(current_branch)
|
|
||||||
if [ -n "$cb" ]; then
|
|
||||||
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
#RVM and git settings
|
|
||||||
if [[ -s ~/.rvm/scripts/rvm ]] ; then
|
|
||||||
RPS1='$(git_custom_status)%{$fg[red]%}[`~/.rvm/bin/rvm-prompt`]%{$reset_color%} $EPS1'
|
|
||||||
fi
|
|
||||||
|
|
||||||
PROMPT='%{$fg[cyan]%}[%~% ]%(?.%{$fg[green]%}.%{$fg[red]%})%B$%b '
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}: '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[blue]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,4 +0,0 @@
|
|||||||
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%#%{$reset_color%} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=") "
|
|
@ -1,5 +0,0 @@
|
|||||||
# PROMPT="[%*] %n:%c $(git_prompt_info)%(!.#.$) "
|
|
||||||
PROMPT='[%*] %{$fg[cyan]%}%n%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %(!.#.$) '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}git:("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
|
@ -1,15 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
RPROMPT='$(git_prompt_status)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
|
@ -1,26 +0,0 @@
|
|||||||
# ZSH THEME Preview: https://skitch.com/huyy/rk979/humza.zshtheme
|
|
||||||
|
|
||||||
let TotalBytes=0
|
|
||||||
for Bytes in $(ls -l | grep "^-" | awk '{ print $5 }')
|
|
||||||
do
|
|
||||||
let TotalBytes=$TotalBytes+$Bytes
|
|
||||||
done
|
|
||||||
# should it say b, kb, Mb, or Gb
|
|
||||||
if [ $TotalBytes -lt 1024 ]; then
|
|
||||||
TotalSize=$(echo -e "scale=3 \n$TotalBytes \nquit" | bc)
|
|
||||||
suffix="b"
|
|
||||||
elif [ $TotalBytes -lt 1048576 ]; then
|
|
||||||
TotalSize=$(echo -e "scale=3 \n$TotalBytes/1024 \nquit" | bc)
|
|
||||||
suffix="kb"
|
|
||||||
elif [ $TotalBytes -lt 1073741824 ]; then
|
|
||||||
TotalSize=$(echo -e "scale=3 \n$TotalBytes/1048576 \nquit" | bc)
|
|
||||||
suffix="Mb"
|
|
||||||
else
|
|
||||||
TotalSize=$(echo -e "scale=3 \n$TotalBytes/1073741824 \nquit" | bc)
|
|
||||||
suffix="Gb"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PROMPT='%{$reset_color%}%n %{$fg[green]%}{%{$reset_color%}%~%{$fg[green]%}}%{$reset_color%}$(git_prompt_info) greetings, earthling %{$fg[green]%}[%{$reset_color%}%{$TotalSize%}%{$suffix%}%{$fg[green]%}]%{$fg[red]%}$%{$reset_color%} ☞ '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}±("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=");%{$reset_color%}"
|
|
@ -1,5 +0,0 @@
|
|||||||
# Found on the ZshWiki
|
|
||||||
# http://zshwiki.org/home/config/prompt
|
|
||||||
#
|
|
||||||
|
|
||||||
PROMPT="%{$fg[red]%}%%%{$reset_color%} "
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[white]%}$(git_prompt_info)%{$fg_bold[white]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[white]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%})"
|
|
@ -1,4 +0,0 @@
|
|||||||
PROMPT=$'%{$fg[green]%}%n@%m: %{$reset_color%}%{$fg[blue]%}%/%{$reset_color%}
|
|
||||||
%{$fg_bold[red]%}➜ %{$reset_color%} '
|
|
||||||
|
|
||||||
PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
|
|
@ -1,31 +0,0 @@
|
|||||||
autoload -U add-zsh-hook
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
|
|
||||||
zstyle ':vcs_info:*' actionformats \
|
|
||||||
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
|
|
||||||
zstyle ':vcs_info:*' formats \
|
|
||||||
'%F{2}%s%F{7}:%F{2}(%F{1}%b%F{2})%f '
|
|
||||||
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
|
||||||
zstyle ':vcs_info:*' enable git
|
|
||||||
|
|
||||||
add-zsh-hook precmd prompt_jnrowe_precmd
|
|
||||||
|
|
||||||
prompt_jnrowe_precmd () {
|
|
||||||
vcs_info
|
|
||||||
|
|
||||||
if [ "${vcs_info_msg_0_}" = "" ]; then
|
|
||||||
dir_status="%F{2}→%f"
|
|
||||||
elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then
|
|
||||||
dir_status="%F{1}▶%f"
|
|
||||||
elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then
|
|
||||||
dir_status="%F{3}▶%f"
|
|
||||||
else
|
|
||||||
dir_status="%F{2}▶%f"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
local ret_status="%(?:%{$fg_bold[green]%}Ξ:%{$fg_bold[red]%}%S↑%s%?)"
|
|
||||||
|
|
||||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg_bold[yellow]%}%2~ ${vcs_info_msg_0_}${dir_status}%{$reset_color%} '
|
|
||||||
|
|
||||||
# vim: set ft=zsh ts=4 sw=4 et:
|
|
@ -1,137 +0,0 @@
|
|||||||
function precmd {
|
|
||||||
local TERMWIDTH
|
|
||||||
(( TERMWIDTH = ${COLUMNS} - 1 ))
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
# Truncate the path if it's too long.
|
|
||||||
|
|
||||||
PR_FILLBAR=""
|
|
||||||
PR_PWDLEN=""
|
|
||||||
|
|
||||||
local promptsize=${#${(%):---(%n@%m:%l)---()--}}
|
|
||||||
local rubyprompt=`rvm_prompt_info`
|
|
||||||
local rubypromptsize=${#${rubyprompt}}
|
|
||||||
local pwdsize=${#${(%):-%~}}
|
|
||||||
|
|
||||||
if [[ "$promptsize + $rubypromptsize + $pwdsize" -gt $TERMWIDTH ]]; then
|
|
||||||
((PR_PWDLEN=$TERMWIDTH - $promptsize))
|
|
||||||
else
|
|
||||||
PR_FILLBAR="\${(l.(($TERMWIDTH - ($promptsize + $rubypromptsize + $pwdsize)))..${PR_HBAR}.)}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
setopt extended_glob
|
|
||||||
preexec () {
|
|
||||||
if [[ "$TERM" == "screen" ]]; then
|
|
||||||
local CMD=${1[(wr)^(*=*|sudo|-*)]}
|
|
||||||
echo -n "\ek$CMD\e\\"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
setprompt () {
|
|
||||||
###
|
|
||||||
# Need this so the prompt will work.
|
|
||||||
|
|
||||||
setopt prompt_subst
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
# See if we can use colors.
|
|
||||||
|
|
||||||
autoload colors zsh/terminfo
|
|
||||||
if [[ "$terminfo[colors]" -ge 8 ]]; then
|
|
||||||
colors
|
|
||||||
fi
|
|
||||||
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
|
|
||||||
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
|
|
||||||
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
|
|
||||||
(( count = $count + 1 ))
|
|
||||||
done
|
|
||||||
PR_NO_COLOUR="%{$terminfo[sgr0]%}"
|
|
||||||
|
|
||||||
###
|
|
||||||
# Modify Git prompt
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
|
|
||||||
|
|
||||||
###
|
|
||||||
# See if we can use extended characters to look nicer.
|
|
||||||
|
|
||||||
typeset -A altchar
|
|
||||||
set -A altchar ${(s..)terminfo[acsc]}
|
|
||||||
PR_SET_CHARSET="%{$terminfo[enacs]%}"
|
|
||||||
PR_SHIFT_IN="%{$terminfo[smacs]%}"
|
|
||||||
PR_SHIFT_OUT="%{$terminfo[rmacs]%}"
|
|
||||||
PR_HBAR=${altchar[q]:--}
|
|
||||||
PR_ULCORNER=${altchar[l]:--}
|
|
||||||
PR_LLCORNER=${altchar[m]:--}
|
|
||||||
PR_LRCORNER=${altchar[j]:--}
|
|
||||||
PR_URCORNER=${altchar[k]:--}
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
# Decide if we need to set titlebar text.
|
|
||||||
|
|
||||||
case $TERM in
|
|
||||||
xterm*)
|
|
||||||
PR_TITLEBAR=$'%{\e]0;%(!.-=*[ROOT]*=- | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\a%}'
|
|
||||||
;;
|
|
||||||
screen)
|
|
||||||
PR_TITLEBAR=$'%{\e_screen \005 (\005t) | %(!.-=[ROOT]=- | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\e\\%}'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
PR_TITLEBAR=''
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
# Decide whether to set a screen title
|
|
||||||
if [[ "$TERM" == "screen" ]]; then
|
|
||||||
PR_STITLE=$'%{\ekzsh\e\\%}'
|
|
||||||
else
|
|
||||||
PR_STITLE=''
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
# Finally, the prompt.
|
|
||||||
|
|
||||||
PROMPT='$PR_SET_CHARSET$PR_STITLE${(e)PR_TITLEBAR}\
|
|
||||||
$PR_CYAN$PR_SHIFT_IN$PR_ULCORNER$PR_HBAR$PR_SHIFT_OUT$PR_GREY(\
|
|
||||||
$PR_GREEN%$PR_PWDLEN<...<%~%<<\
|
|
||||||
$PR_GREY)`rvm_prompt_info`$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_HBAR${(e)PR_FILLBAR}$PR_HBAR$PR_SHIFT_OUT$PR_GREY(\
|
|
||||||
$PR_CYAN%(!.%SROOT%s.%n)$PR_GREY@$PR_GREEN%m:%l\
|
|
||||||
$PR_GREY)$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_URCORNER$PR_SHIFT_OUT\
|
|
||||||
|
|
||||||
$PR_CYAN$PR_SHIFT_IN$PR_LLCORNER$PR_BLUE$PR_HBAR$PR_SHIFT_OUT(\
|
|
||||||
$PR_YELLOW%D{%H:%M:%S}\
|
|
||||||
$PR_LIGHT_BLUE%{$reset_color%}`git_prompt_info``git_prompt_status`$PR_BLUE)$PR_CYAN$PR_SHIFT_IN$PR_HBAR\
|
|
||||||
$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
|
|
||||||
>$PR_NO_COLOUR '
|
|
||||||
|
|
||||||
# display exitcode on the right when >0
|
|
||||||
return_code="%(?..%{$fg[red]%}%? ↵ %{$reset_color%})"
|
|
||||||
RPROMPT=' $return_code$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_BLUE$PR_HBAR$PR_SHIFT_OUT\
|
|
||||||
($PR_YELLOW%D{%a,%b%d}$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_CYAN$PR_LRCORNER$PR_SHIFT_OUT$PR_NO_COLOUR'
|
|
||||||
|
|
||||||
PS2='$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
|
|
||||||
$PR_BLUE$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT(\
|
|
||||||
$PR_LIGHT_GREEN%_$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
|
|
||||||
$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT$PR_NO_COLOUR '
|
|
||||||
}
|
|
||||||
|
|
||||||
setprompt
|
|
@ -1,43 +0,0 @@
|
|||||||
grey='\e[0;90m'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$grey%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$grey%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$grey%})"
|
|
||||||
|
|
||||||
function josh_prompt {
|
|
||||||
(( spare_width = ${COLUMNS} ))
|
|
||||||
prompt=" "
|
|
||||||
|
|
||||||
branch=$(current_branch)
|
|
||||||
ruby_version=$(rvm_prompt_info)
|
|
||||||
path_size=${#PWD}
|
|
||||||
branch_size=${#branch}
|
|
||||||
ruby_size=${#ruby_version}
|
|
||||||
user_machine_size=${#${(%):-%n@%m-}}
|
|
||||||
|
|
||||||
if [[ ${#branch} -eq 0 ]]
|
|
||||||
then (( ruby_size = ruby_size + 1 ))
|
|
||||||
else
|
|
||||||
(( branch_size = branch_size + 4 ))
|
|
||||||
if [[ -n $(git status -s 2> /dev/null) ]]; then
|
|
||||||
(( branch_size = branch_size + 2 ))
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
(( spare_width = ${spare_width} - (${user_machine_size} + ${path_size} + ${branch_size} + ${ruby_size}) ))
|
|
||||||
|
|
||||||
while [ ${#prompt} -lt $spare_width ]; do
|
|
||||||
prompt=" $prompt"
|
|
||||||
done
|
|
||||||
|
|
||||||
prompt="%{%F{green}%}$PWD$prompt%{%F{red}%}$(rvm_prompt_info)%{$reset_color%} $(git_prompt_info)"
|
|
||||||
|
|
||||||
echo $prompt
|
|
||||||
}
|
|
||||||
|
|
||||||
setopt prompt_subst
|
|
||||||
|
|
||||||
PROMPT='
|
|
||||||
%n@%m $(josh_prompt)
|
|
||||||
%(?,%{%F{green}%},%{%F{red}%})⚡%{$reset_color%} '
|
|
@ -1,16 +0,0 @@
|
|||||||
# ZSH Theme - Preview: http://dl.dropbox.com/u/1552408/Screenshots/2010-04-08-oh-my-zsh.png
|
|
||||||
|
|
||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
|
|
||||||
PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m%{$reset_color%} %~ \
|
|
||||||
$(git_prompt_info)\
|
|
||||||
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
||||||
RPS1='${return_code}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="⚡"
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
#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[cyan]%}%T%{$fg_bold[green]%} %{$fg_bold[white]%}%n%{$fg[magenta]%}@%{$fg_bold[white]%}%m %{$fg_bold[green]%}%d
|
|
||||||
%{$fg_bold[yellow]%}%% %{$reset_color%}"
|
|
||||||
|
|
||||||
#ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
#ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
#ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
#ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,46 +0,0 @@
|
|||||||
# ------------------------------------------------------------------------
|
|
||||||
# Juan G. Hurtado oh-my-zsh theme
|
|
||||||
# (Needs Git plugin for current_branch method)
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# Color shortcuts
|
|
||||||
RED=$fg[red]
|
|
||||||
YELLOW=$fg[yellow]
|
|
||||||
GREEN=$fg[green]
|
|
||||||
WHITE=$fg[white]
|
|
||||||
BLUE=$fg[blue]
|
|
||||||
RED_BOLD=$fg_bold[red]
|
|
||||||
YELLOW_BOLD=$fg_bold[yellow]
|
|
||||||
GREEN_BOLD=$fg_bold[green]
|
|
||||||
WHITE_BOLD=$fg_bold[white]
|
|
||||||
BLUE_BOLD=$fg_bold[blue]
|
|
||||||
RESET_COLOR=$reset_color
|
|
||||||
|
|
||||||
# Format for git_prompt_info()
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
|
|
||||||
# Format for parse_git_dirty()
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RED%}(*)"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
# Format for git_prompt_status()
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED=" %{$RED%}unmerged"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED=" %{$RED%}deleted"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED=" %{$YELLOW%}renamed"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED=" %{$YELLOW%}modified"
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED=" %{$GREEN%}added"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED=" %{$WHITE%}untracked"
|
|
||||||
|
|
||||||
# Format for git_prompt_ahead()
|
|
||||||
ZSH_THEME_GIT_PROMPT_AHEAD=" %{$RED%}(!)"
|
|
||||||
|
|
||||||
# Format for git_prompt_long_sha() and git_prompt_short_sha()
|
|
||||||
ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$WHITE%}[%{$YELLOW%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]"
|
|
||||||
|
|
||||||
# Prompt format
|
|
||||||
PROMPT='
|
|
||||||
%{$GREEN_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
|
|
||||||
%{$BLUE%}>%{$RESET_COLOR%} '
|
|
||||||
RPROMPT='%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)$(git_prompt_status)%{$RESET_COLOR%}'
|
|
@ -1,12 +0,0 @@
|
|||||||
# Simple theme based on my old zsh settings.
|
|
||||||
|
|
||||||
function get_host {
|
|
||||||
echo '@'`hostname`''
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT='> '
|
|
||||||
RPROMPT='%~$(git_prompt_info)$(get_host)'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
|
@ -1,13 +0,0 @@
|
|||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
|
|
||||||
PROMPT='%{$fg[green]%}%c \
|
|
||||||
$(git_prompt_info)\
|
|
||||||
%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
||||||
RPS1='%{$fg[blue]%}%~%{$reset_color%} ${return_code} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}:: %{$fg[yellow]%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[yellow]%}"
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
|||||||
autoload -U colors && colors
|
|
||||||
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
|
|
||||||
zstyle ':vcs_info:*' stagedstr '%F{green}●'
|
|
||||||
zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
|
|
||||||
zstyle ':vcs_info:*' check-for-changes true
|
|
||||||
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
|
|
||||||
zstyle ':vcs_info:*' enable git svn
|
|
||||||
precmd () {
|
|
||||||
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
|
|
||||||
zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{green}]'
|
|
||||||
} else {
|
|
||||||
zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{red}●%F{green}]'
|
|
||||||
}
|
|
||||||
|
|
||||||
vcs_info
|
|
||||||
}
|
|
||||||
|
|
||||||
setopt prompt_subst
|
|
||||||
PROMPT='%B%F{magenta}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%% '
|
|
@ -1,50 +0,0 @@
|
|||||||
# ------------------------------------------------------------------------------
|
|
||||||
# FILE: kphoen.zsh-theme
|
|
||||||
# DESCRIPTION: oh-my-zsh theme file.
|
|
||||||
# AUTHOR: Kévin Gomez (geek63@gmail.com)
|
|
||||||
# VERSION: 1.0.0
|
|
||||||
# SCREENSHOT:
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
|
|
||||||
PROMPT='[%{$fg[red]%}%n%{$reset_color%}@%{$fg[magenta]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%}$(git_prompt_info)]
|
|
||||||
%# '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
# display exitcode on the right when >0
|
|
||||||
return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
|
|
||||||
RPROMPT='${return_code}$(git_prompt_status)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
|
|
||||||
else
|
|
||||||
PROMPT='[%n@%m:%~$(git_prompt_info)]
|
|
||||||
%# '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
# display exitcode on the right when >0
|
|
||||||
return_code="%(?..%? ↵)"
|
|
||||||
|
|
||||||
RPROMPT='${return_code}$(git_prompt_status)'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
|
|
||||||
fi
|
|
@ -1,6 +0,0 @@
|
|||||||
# ZSH Theme - Preview: http://cl.ly/350F0F0k1M2y3A2i3p1S
|
|
||||||
|
|
||||||
PROMPT='λ %~/ $(git_prompt_info)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
@ -1,80 +0,0 @@
|
|||||||
# vim: set ts=2 textwidth=0
|
|
||||||
|
|
||||||
autoload -U add-zsh-hook
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
local c0=$(printf "\033[0m")
|
|
||||||
local c1=$(printf "\033[38;5;215m")
|
|
||||||
local c2=$(printf "\033[38;5;209m")
|
|
||||||
local c3=$(printf "\033[38;5;203m")
|
|
||||||
local c4=$(printf "\033[33;4m")
|
|
||||||
local c5=$(printf "\033[38;5;137m")
|
|
||||||
local c6=$(printf "\033[38;5;240m")
|
|
||||||
local c7=$(printf "\033[38;5;149m")
|
|
||||||
local c8=$(printf "\033[38;5;126m")
|
|
||||||
local c9=$(printf "\033[38;5;162m")
|
|
||||||
|
|
||||||
local foopath=$(perl /home/scp1/bin/foopath)
|
|
||||||
|
|
||||||
if [ "$TERM" = "linux" ]; then
|
|
||||||
c1=$(printf "\033[34;1m")
|
|
||||||
c2=$(printf "\033[35m")
|
|
||||||
c3=$(printf "\033[31m")
|
|
||||||
c4=$(printf "\033[31;1m")
|
|
||||||
c5=$(printf "\033[32m")
|
|
||||||
c6=$(printf "\033[32;1m")
|
|
||||||
c7=$(printf "\033[33m")
|
|
||||||
c8=$(printf "\033[33;1m")
|
|
||||||
c9=$(printf "\033[34m")
|
|
||||||
fi
|
|
||||||
|
|
||||||
#local newtv=$(perl $HOME/devel/newtv.pl)
|
|
||||||
local newtv=''
|
|
||||||
|
|
||||||
zstyle ':vcs_info:*' actionformats \
|
|
||||||
'%{$c8%}(%f%s)%{$c7%}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
|
|
||||||
zstyle ':vcs_info:*' formats \
|
|
||||||
"%{$c8%}%s%{$c7%}:%{$c7%}(%{$c9%}%b%{$c7%})%f "
|
|
||||||
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
|
||||||
zstyle ':vcs_info:*' enable git
|
|
||||||
|
|
||||||
add-zsh-hook precmd prompt_jnrowe_precmd
|
|
||||||
|
|
||||||
prompt_jnrowe_precmd () {
|
|
||||||
vcs_info
|
|
||||||
|
|
||||||
if [ "${vcs_info_msg_0_}" = "" ]; then
|
|
||||||
#dir_status="|%F{3}%n%F{7}@%F{3}%m%F{7}:%F{9}%l%f"
|
|
||||||
#dir_status="$c1%n%F{7}@%F{9}%m%F{7}:%F{12}%/"
|
|
||||||
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$c4%}%/ %{$c0%}(%{$c5%}%?%{$c0%})"
|
|
||||||
#dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$foopath%} %{$c0%}(%{$c5%}%?%{$c0%})"
|
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${vcs_info_msg_0_}${dir_status} ${ret_status}%{$reset_color%}
|
|
||||||
> '
|
|
||||||
elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then
|
|
||||||
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$c4%}%/ %{$c0%}(%{$c5%}%?%{$c0%})"
|
|
||||||
PROMPT='${vcs_info_msg_0_}
|
|
||||||
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status} ${vcs_info_msg_0_}%{$reset_color%}
|
|
||||||
> '
|
|
||||||
|
|
||||||
elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then
|
|
||||||
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$c4%}%/ %{$c0%}(%{$c5%}%?%{$c0%})"
|
|
||||||
|
|
||||||
PROMPT='${vcs_info_msg_0_}
|
|
||||||
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
|
|
||||||
%{$c9%}·>%{$c0%} '
|
|
||||||
else
|
|
||||||
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$c4%}%/ %{$c0%}(%{$c5%}%?%{$c0%})"
|
|
||||||
PROMPT='${vcs_info_msg_0_}
|
|
||||||
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status} ${vcs_info_msg_0_}%{$reset_color%}
|
|
||||||
> '
|
|
||||||
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$reset_color%} ${vcs_info_msg_0_}${dir_status}%{$reset_color%}
|
|
||||||
#> '
|
|
||||||
|
|
||||||
# vim: set ft=zsh ts=4 sw=4 et:
|
|
||||||
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
# ZSH Theme - Preview: http://cl.ly/f701d00760f8059e06dc
|
|
||||||
# Thanks to gallifrey, upon whose theme this is based
|
|
||||||
|
|
||||||
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 '
|
|
||||||
RPS1="${return_code}"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"
|
|
@ -1,6 +0,0 @@
|
|||||||
# Theme with full path names and hostname
|
|
||||||
# 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) %(!.#.$) '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git:("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[magenta]%}%1~$(git_prompt_info) %{$fg_bold[magenta]%}%# %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}["
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="*]"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="]"
|
|
@ -1,23 +0,0 @@
|
|||||||
setopt prompt_subst
|
|
||||||
autoload colors
|
|
||||||
colors
|
|
||||||
|
|
||||||
autoload -U add-zsh-hook
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
|
|
||||||
# check-for-changes can be really slow.
|
|
||||||
# you should disable it, if you work with large repositories
|
|
||||||
zstyle ':vcs_info:*:prompt:*' check-for-changes true
|
|
||||||
|
|
||||||
add-zsh-hook precmd mikeh_precmd
|
|
||||||
|
|
||||||
mikeh_precmd() {
|
|
||||||
vcs_info
|
|
||||||
}
|
|
||||||
|
|
||||||
# user, host, full path, and time/date
|
|
||||||
# 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
|
|
||||||
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] <($vcs_info_msg_0_)>%{\e[0m%}%b '
|
|
||||||
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
|
@ -1,8 +0,0 @@
|
|||||||
# Yay! High voltage and arrows!
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
PROMPT='%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} '
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[red]%}%m%{$reset_color%}:%{$fg[cyan]%}%c%{$reset_color%}:%# '
|
|
||||||
RPROMPT='%{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%}% '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="<%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$fg[green]%}>%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}>"
|
|
@ -1,14 +0,0 @@
|
|||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
|
||||||
local current_dir='%{$terminfo[bold]$fg[blue]%}%~%{$reset_color%}'
|
|
||||||
local rvm_ruby='%{$fg[red]%}$(rvm_prompt_info)%{$reset_color%}'
|
|
||||||
local git_branch='%{$fg[blue]%}$(git_prompt_info)%{$reset_color%}'
|
|
||||||
|
|
||||||
PROMPT="${user_host}:${current_dir} ${rvm_ruby}
|
|
||||||
${git_branch} %B$%b "
|
|
||||||
RPS1="${return_code}"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|
|
@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/env zsh
|
|
||||||
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
||||||
|
|
||||||
setopt promptsubst
|
|
||||||
|
|
||||||
autoload -U add-zsh-hook
|
|
||||||
|
|
||||||
PROMPT_SUCCESS_COLOR=$FG[117]
|
|
||||||
PROMPT_FAILURE_COLOR=$FG[124]
|
|
||||||
PROMPT_VCS_INFO_COLOR=$FG[242]
|
|
||||||
PROMPT_PROMPT=$FG[077]
|
|
||||||
GIT_DIRTY_COLOR=$FG[133]
|
|
||||||
GIT_CLEAN_COLOR=$FG[118]
|
|
||||||
GIT_PROMPT_INFO=$FG[012]
|
|
||||||
|
|
||||||
PROMPT='%{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} '
|
|
||||||
|
|
||||||
#RPS1="${return_code}"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT='%F{green}%2c%F{blue} [%f '
|
|
||||||
RPROMPT='$(git_prompt_info) %F{blue}] %F{green}%D{%L:%M} %F{yellow}%D{%p}%f'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}*%f"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
@ -1,17 +0,0 @@
|
|||||||
# Based on robbyrussell's theme, with host and rvm indicators. Example:
|
|
||||||
# @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname)
|
|
||||||
|
|
||||||
# Get the current ruby version in use with RVM:
|
|
||||||
if [ -e ~/.rvm/bin/rvm-prompt ]; then
|
|
||||||
RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} "
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the host name (first 4 chars)
|
|
||||||
HOST_PROMPT_="%{$fg_bold[red]%}@$HOST[0,4] ➜ %{$fg_bold[cyan]%}%c "
|
|
||||||
GIT_PROMPT="%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}"
|
|
||||||
PROMPT="$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,14 +0,0 @@
|
|||||||
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)%(!.#.$) '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}%B"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}"
|
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
|
||||||
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:'
|
|
@ -1,16 +0,0 @@
|
|||||||
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
|
||||||
|
|
||||||
PROMPT='
|
|
||||||
%{$fg[$NCOLOR]%}%B%n@%m%b%{$reset_color%} %{$fg[white]%}%B${PWD/#$HOME/~}%b%{$reset_color%}
|
|
||||||
$(git_prompt_info)%(!.#.$) '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[yellow]%}%B"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}*"
|
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
|
||||||
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:'
|
|
@ -1,15 +0,0 @@
|
|||||||
if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
|
|
||||||
|
|
||||||
local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
|
|
||||||
|
|
||||||
PROMPT='
|
|
||||||
%{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
|
|
||||||
%{${fg[$CARETCOLOR]}%}%# %{${reset_color}%}'
|
|
||||||
|
|
||||||
RPS1='${return_code} %D - %*'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[magenta]%}^%{$reset_color%}%{$fg_bold[yellow]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ±"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ?"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"
|
|
@ -1,8 +0,0 @@
|
|||||||
PROMPT='
|
|
||||||
%n@%m %{$fg[cyan]%}%~
|
|
||||||
%? $(git_prompt_info)%{$fg_bold[blue]%}%% %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
|
|
@ -1,24 +0,0 @@
|
|||||||
# /|/ Code by Stephen
|
|
||||||
# /|/ "Rixius" Middleton
|
|
||||||
#
|
|
||||||
# name in folder (github)
|
|
||||||
# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right.
|
|
||||||
function collapse_pwd {
|
|
||||||
echo $(pwd | sed -e "s,^$HOME,~,")
|
|
||||||
}
|
|
||||||
function prompt_char {
|
|
||||||
echo -n "%{$bg[white]%}%{$fg[red]%}"
|
|
||||||
git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return
|
|
||||||
echo "≥%{$reset_color%}"
|
|
||||||
}
|
|
||||||
RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
|
|
||||||
|
|
||||||
PROMPT='
|
|
||||||
%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
|
|
||||||
$(prompt_char) '
|
|
||||||
RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,6 +0,0 @@
|
|||||||
PROMPT='%{$fg[green]%}%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" ✗"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT='%{$fg_bold[green]%}%h %{$fg[cyan]%}%2~ %{$fg_bold[blue]%}$(git_prompt_info) %{$reset_color%}» '
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
# zsh theme requires 256 color enabled terminal
|
|
||||||
# i.e TERM=xterm-256color
|
|
||||||
# Preview - http://www.flickr.com/photos/adelcampo/4556482563/sizes/o/
|
|
||||||
# based on robbyrussell's shell but louder!
|
|
||||||
|
|
||||||
PROMPT='%{$fg_bold[blue]%}$(git_prompt_info) %F{208}%c%f
|
|
||||||
%{$fg_bold[white]%}%# %{$reset_color%}'
|
|
||||||
RPROMPT='%B%F{208}%n%f%{$fg_bold[white]%}@%F{039}%m%f%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{154}±|%f%F{124}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}%B✘%b%F{154}|%f%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%F{154}|"
|
|
@ -1,26 +0,0 @@
|
|||||||
# Git-centric variation of the "fishy" theme.
|
|
||||||
# See screenshot at http://ompldr.org/vOHcwZg
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}-"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}>"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[cyan]%}#"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%}?"
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=" "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
local user_color='green'
|
|
||||||
test $UID -eq 0 && user_color='red'
|
|
||||||
|
|
||||||
PROMPT='%(?..%{$fg_bold[red]%}exit %?
|
|
||||||
%{$reset_color%})'\
|
|
||||||
'%{$bold_color%}$(git_prompt_status)%{$reset_color%}'\
|
|
||||||
'$(git_prompt_info)'\
|
|
||||||
'%{$fg[$user_color]%}%~%{$reset_color%}'\
|
|
||||||
'%(!.#.>) '
|
|
||||||
|
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
@ -1,27 +0,0 @@
|
|||||||
#
|
|
||||||
# PROMPT
|
|
||||||
#
|
|
||||||
PROMPT_BRACKET_BEGIN='%{$fg_bold[white]%}['
|
|
||||||
PROMPT_HOST='%{$fg_bold[cyan]%}%m'
|
|
||||||
PROMPT_SEPARATOR='%{$reset_color%}:'
|
|
||||||
PROMPT_DIR='%{$fg_bold[yellow]%}%c'
|
|
||||||
PROMPT_BRACKET_END='%{$fg_bold[white]%}]'
|
|
||||||
|
|
||||||
PROMPT_USER='%{$fg_bold[white]%}%n'
|
|
||||||
PROMPT_SIGN='%{$reset_color%}%#'
|
|
||||||
|
|
||||||
GIT_PROMPT_INFO='$(git_prompt_info)'
|
|
||||||
|
|
||||||
# My current prompt looks like:
|
|
||||||
# [host:current_dir] (git_prompt_info)
|
|
||||||
# [username]%
|
|
||||||
PROMPT="${PROMPT_BRACKET_BEGIN}${PROMPT_HOST}${PROMPT_SEPARATOR}${PROMPT_DIR}${PROMPT_BRACKET_END}${GIT_PROMPT_INFO}
|
|
||||||
${PROMPT_BRACKET_BEGIN}${PROMPT_USER}${PROMPT_BRACKET_END}${PROMPT_SIGN} "
|
|
||||||
|
|
||||||
#
|
|
||||||
# Git repository
|
|
||||||
#
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=''
|
|
@ -1,16 +0,0 @@
|
|||||||
# Comment
|
|
||||||
|
|
||||||
PROMPT='%{$fg[magenta]%}[%c] %{$reset_color%}'
|
|
||||||
|
|
||||||
RPROMPT='%{$fg[magenta]%}$(git_prompt_info)%{$reset_color%} $(git_prompt_status)%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
|
|
||||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✭"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗"
|
|
||||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
|
|
||||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%} ✱"
|
|
@ -1,15 +0,0 @@
|
|||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
function prompt_char {
|
|
||||||
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
|
|
||||||
)
|
|
||||||
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
|
|
||||||
%_$(prompt_char) '
|
|
||||||
|
|
||||||
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
|
@ -1,12 +0,0 @@
|
|||||||
PROMPT='%{$fg_no_bold[cyan]%}%n%{$fg_no_bold[magenta]%}➜%{$fg_no_bold[green]%}%3~$(git_prompt_info)%{$reset_color%}» '
|
|
||||||
RPROMPT='[%*]'
|
|
||||||
|
|
||||||
# git theming
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[red]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[blue]%})"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}✗%{$fg_bold[blue]%})"
|
|
||||||
|
|
||||||
# LS colors, made with http://geoff.greer.fm/lscolors/
|
|
||||||
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:'
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT='%{${fg_bold[yellow]}%}%n%{$reset_color%}%{${fg[yellow]}%}@%m%{$reset_color%} $(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
|
||||||
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}✗%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,7 +0,0 @@
|
|||||||
PROMPT='$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
|
|
||||||
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
|
@ -1,6 +0,0 @@
|
|||||||
# user, host, full path, and time/date
|
|
||||||
# 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
|
|
||||||
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 '
|
|
||||||
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
|
@ -1,6 +0,0 @@
|
|||||||
# user, host, full path, and time/date
|
|
||||||
# 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
|
|
||||||
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]>%{\e[0m%}%b '
|
|
||||||
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
|
Loading…
Reference in new issue