mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Updates to style and svn plugin (correct branch display)
This commit is contained in:
parent
7f8217294c
commit
396755f044
6 changed files with 14 additions and 13 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "plugins/zsh-syntax-highlighting"]
|
||||||
|
path = plugins/zsh-syntax-highlighting
|
||||||
|
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# ls colors
|
# ls colors
|
||||||
autoload colors; colors;
|
autoload colors; colors;
|
||||||
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
#export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
||||||
#export LS_COLORS
|
#export LS_COLORS
|
||||||
|
|
||||||
# Enable ls colors
|
# Enable ls colors
|
||||||
|
|
|
||||||
1
plugins/ls_colors
Submodule
1
plugins/ls_colors
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0937975751f0a957228c3fbb4d6b4a181d40f073
|
||||||
|
|
@ -13,19 +13,10 @@ function in_svn() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function svn_get_repo_name {
|
|
||||||
if [ $(in_svn) ]; then
|
|
||||||
svn info | sed -n 's/Repository\ Root:\ .*\///p' | read SVN_ROOT
|
|
||||||
|
|
||||||
svn info | sed -n "s/URL:\ .*$SVN_ROOT\///p" | sed "s/\/.*$//"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function svn_get_branch_name {
|
function svn_get_branch_name {
|
||||||
if [ $(in_svn) ]; then
|
if [ $(in_svn) ]; then
|
||||||
svn info | sed -n 's/URL:\ .*\///p' | read SVN_URL
|
svn info | grep '^URL:' | egrep -o '(tags|branches)/[^/]+|trunk' | egrep -o '[^/]+$' | read SVN_URL
|
||||||
|
echo $SVN_URL
|
||||||
basename $SVN_URL
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
1
plugins/zsh-syntax-highlighting
Submodule
1
plugins/zsh-syntax-highlighting
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit bb0d575942760fe483790fe878ea43b1f781e2ca
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
# 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%}%{$fg[cyan]%}$(svn_prompt_info)%{$reset_color%}$(git_prompt_info)%(!.#.%{$fg[yellow]%}$%{$reset_color%}) '
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git:("
|
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git:("
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
|
||||||
|
|
||||||
|
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=""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue