Sorin Ionescu
13 years ago
13 changed files with 153 additions and 100 deletions
@ -1,18 +1,53 @@ |
|||||||
# The default styles. |
# The default styles. |
||||||
zstyle ':git-info:' action 'action:%s' # %s - Special action name (am, merge, rebase). |
|
||||||
zstyle ':git-info:' added 'added:%a' # %a - Indicator to notify of added files. |
# %s - Special action name (am, merge, rebase). |
||||||
zstyle ':git-info:' ahead 'ahead:%A' # %A - Indicator to notify of ahead branch. |
zstyle ':omz:plugin:git:prompt' action 'action:%s' |
||||||
zstyle ':git-info:' behind 'behind:%B' # %B - Indicator to notify of behind branch. |
|
||||||
zstyle ':git-info:' branch '%b' # %b - Branch name. |
# %a - Indicator to notify of added files. |
||||||
zstyle ':git-info:' clean 'clean' # %C - Indicator to notify of clean branch. |
zstyle ':omz:plugin:git:prompt' added 'added:%a' |
||||||
zstyle ':git-info:' commit 'commit:%c' # %c - SHA-1 hash. |
|
||||||
zstyle ':git-info:' deleted 'deleted:%d' # %d - Indicator to notify of deleted files. |
# %A - Indicator to notify of ahead branch. |
||||||
zstyle ':git-info:' dirty 'dirty' # %D - Indicator to notify of dirty branch. |
zstyle ':omz:plugin:git:prompt' ahead 'ahead:%A' |
||||||
zstyle ':git-info:' modified 'modified:%m' # %m - Indicator to notify of modified files. |
|
||||||
zstyle ':git-info:' remote '%R' # %R - Remote name. |
# %B - Indicator to notify of behind branch. |
||||||
zstyle ':git-info:' renamed 'renamed:%r' # %r - Indicator to notify of renamed files. |
zstyle ':omz:plugin:git:prompt' behind 'behind:%B' |
||||||
zstyle ':git-info:' stashed 'stashed:%S' # %S - Indicator to notify of stashed files. |
|
||||||
zstyle ':git-info:' unmerged 'unmerged:%U' # %U - Indicator to notify of unmerged files. |
# %b - Branch name. |
||||||
zstyle ':git-info:' untracked 'untracked:%u' # %u - Indicator to notify of untracked files. |
zstyle ':omz:plugin:git:prompt' branch '%b' |
||||||
zstyle ':git-info:' prompt ' git:(%b %D%C)' # Left prompt. |
|
||||||
zstyle ':git-info:' rprompt '' # Right prompt. |
# %C - Indicator to notify of clean branch. |
||||||
|
zstyle ':omz:plugin:git:prompt' clean 'clean' |
||||||
|
|
||||||
|
# %c - SHA-1 hash. |
||||||
|
zstyle ':omz:plugin:git:prompt' commit 'commit:%c' |
||||||
|
|
||||||
|
# %d - Indicator to notify of deleted files. |
||||||
|
zstyle ':omz:plugin:git:prompt' deleted 'deleted:%d' |
||||||
|
|
||||||
|
# %D - Indicator to notify of dirty branch. |
||||||
|
zstyle ':omz:plugin:git:prompt' dirty 'dirty' |
||||||
|
|
||||||
|
# %m - Indicator to notify of modified files. |
||||||
|
zstyle ':omz:plugin:git:prompt' modified 'modified:%m' |
||||||
|
|
||||||
|
# %R - Remote name. |
||||||
|
zstyle ':omz:plugin:git:prompt' remote '%R' |
||||||
|
|
||||||
|
# %r - Indicator to notify of renamed files. |
||||||
|
zstyle ':omz:plugin:git:prompt' renamed 'renamed:%r' |
||||||
|
|
||||||
|
# %S - Indicator to notify of stashed files. |
||||||
|
zstyle ':omz:plugin:git:prompt' stashed 'stashed:%S' |
||||||
|
|
||||||
|
# %U - Indicator to notify of unmerged files. |
||||||
|
zstyle ':omz:plugin:git:prompt' unmerged 'unmerged:%U' |
||||||
|
|
||||||
|
# %u - Indicator to notify of untracked files. |
||||||
|
zstyle ':omz:plugin:git:prompt' untracked 'untracked:%u' |
||||||
|
|
||||||
|
# Left prompt. |
||||||
|
zstyle ':omz:plugin:git:prompt' prompt ' git:(%b %D%C)' |
||||||
|
|
||||||
|
# Right prompt. |
||||||
|
zstyle ':omz:plugin:git:prompt' rprompt '' |
||||||
|
|
||||||
|
@ -1,34 +1,30 @@ |
|||||||
# Set the path to Oh My Zsh. |
|
||||||
OMZ="$HOME/.oh-my-zsh" |
|
||||||
|
|
||||||
# Set the key mapping style to 'emacs' or 'vi'. |
# Set the key mapping style to 'emacs' or 'vi'. |
||||||
KEYMAP='emacs' |
zstyle ':omz:editor' keymap 'emacs' |
||||||
|
|
||||||
|
# Auto convert .... to ../.. |
||||||
|
zstyle ':omz:editor' dot-expansion 'no' |
||||||
|
|
||||||
# Set case-sensitivity for completion, history lookup, etc. |
# Set case-sensitivity for completion, history lookup, etc. |
||||||
CASE_SENSITIVE='false' |
zstyle ':omz:*:*' case-sensitive 'no' |
||||||
|
|
||||||
# Color output (auto set to 'false' on dumb terminals). |
# Color output (auto set to 'no' on dumb terminals). |
||||||
COLOR='true' |
zstyle ':omz:*:*' color 'yes' |
||||||
|
|
||||||
# Auto set the tab and window titles. |
# Auto set the tab and window titles. |
||||||
AUTO_TITLE='true' |
zstyle ':omz:terminal' auto-title 'yes' |
||||||
|
|
||||||
# Auto convert .... to ../.. |
|
||||||
DOT_EXPANSION='false' |
|
||||||
|
|
||||||
# Indicate that completions are being generated. |
# Indicate that completions are being generated. |
||||||
COMPLETION_INDICATOR='false' |
zstyle ':omz:completion:indicator' enable 'no' |
||||||
|
|
||||||
# Set the plugins to load (see $OMZ/plugins/). |
# Set the plugins to load (see $OMZ/plugins/). |
||||||
# Example: plugins=(git lighthouse rails ruby textmate) |
zstyle ':omz:load' plugin 'archive' 'git' |
||||||
plugins=(git) |
|
||||||
|
|
||||||
# This will make you shout: OH MY ZSHELL! |
|
||||||
source "$OMZ/init.zsh" |
|
||||||
|
|
||||||
# Load the prompt theme (type prompt -l to list all themes). |
|
||||||
# Setting it to 'random' loads a random theme. |
# Setting it to 'random' loads a random theme. |
||||||
[[ "$TERM" != 'dumb' ]] && prompt sorin || prompt off |
# Auto set to 'off' on dumb terminals. |
||||||
|
zstyle ':omz:prompt' theme 'sorin' |
||||||
|
|
||||||
|
# This will make you shout: OH MY ZSHELL! |
||||||
|
source "$HOME/.oh-my-zsh/init.zsh" |
||||||
|
|
||||||
# Customize to your needs... |
# Customize to your needs... |
||||||
|
|
||||||
|
Loading…
Reference in new issue