mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge 15629055ca into 8c45b73918
This commit is contained in:
commit
8f3050f48c
2 changed files with 30 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ alias ga='git add'
|
|||
compdef _git ga=git-add
|
||||
alias gm='git merge'
|
||||
compdef _git gm=git-merge
|
||||
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
|
||||
compdef _git grm=git-rm
|
||||
|
||||
# Git and svn mix
|
||||
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
||||
|
|
|
|||
28
themes/two-lines.zsh-theme
Normal file
28
themes/two-lines.zsh-theme
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
local magenta=$fg[magenta]
|
||||
local blue=$fg[blue]
|
||||
local red=$fg[red]
|
||||
local green=$fg[green]
|
||||
|
||||
# Show a unicode character representing your current ruby VM.
|
||||
function _show_rvm_prompt() {
|
||||
local rvm_char
|
||||
if [ -x "${HOME}/.rvm/bin/rvm-prompt" ]; then
|
||||
rvm_char=`${HOME}/.rvm/bin/rvm-prompt u 2>/dev/null`
|
||||
[ -n "${rvm_char}" ] && echo "${rvm_char} "
|
||||
fi
|
||||
}
|
||||
|
||||
local return_code="%(?..%{$red%}%? ↵%{$reset_color%})"
|
||||
|
||||
|
||||
PROMPT='%{$magenta%}%n@%m%{$reset_color%}: %{$blue%}%~ $(git_prompt_info)%{$reset_color%}
|
||||
$(_show_rvm_prompt)> '
|
||||
|
||||
RPS1="${return_code}"
|
||||
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$blue%})"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$red%}*%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$green%}?"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
Loading…
Add table
Add a link
Reference in a new issue