mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Checking in updated copy of my theme.
This commit is contained in:
parent
06a973b4ee
commit
7976a91efc
1 changed files with 4 additions and 10 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
|
# I hate ZSH's correction feature.
|
||||||
setopt nocorrect
|
setopt nocorrect
|
||||||
|
|
||||||
# Found on the ZshWiki
|
# Found on the ZshWiki: http://zshwiki.org/home/config/prompt
|
||||||
# http://zshwiki.org/home/config/prompt
|
|
||||||
function prompt_char {
|
function prompt_char {
|
||||||
git branch >/dev/null 2>/dev/null && echo "%{$fg[blue]%}λ" && return
|
git branch >/dev/null 2>/dev/null && echo "%{$fg[blue]%}λ" && return
|
||||||
# These are slow and have therefore been killed:
|
# These are slow and have therefore been killed:
|
||||||
|
|
@ -24,10 +23,5 @@ function git_current_branch() {
|
||||||
echo "$ZSH_THEME_GIT_PROMPT_PREFIX%{$fg[blue]%}${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
echo "$ZSH_THEME_GIT_PROMPT_PREFIX%{$fg[blue]%}${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
||||||
}
|
}
|
||||||
|
|
||||||
# PROMPT='[%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}:%{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)]
|
PROMPT='[%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}:%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)]
|
||||||
# $(prompt_char) '
|
$(prompt_char)%{$reset_color%} '
|
||||||
# PROMPT='[%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}:%{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)]
|
|
||||||
# λ '
|
|
||||||
# PROMPT='[%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}:%{$fg_bold[green]%}%~%{$reset_color%}]
|
|
||||||
# λ '
|
|
||||||
PROMPT='[%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}:%{$fg_bold[green]%}%~%{$reset_color%}$(git_current_branch)] $(prompt_char)%{$reset_color%} '
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue