mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Merge d2494553b1 into 4224c2a1af
This commit is contained in:
commit
9082d9bfc9
3 changed files with 25 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ function work_in_progress() {
|
|||
alias g='git'
|
||||
|
||||
alias ga='git add'
|
||||
|
||||
alias gaa='git add --all'
|
||||
alias gb='git branch'
|
||||
alias gba='git branch -a'
|
||||
alias gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d'
|
||||
|
|
|
|||
24
themes/eystein.zsh-theme
Normal file
24
themes/eystein.zsh-theme
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Grab the current filepath, use shortcuts: ~/Desktop
|
||||
# Append the current git branch, if in a git repository
|
||||
#
|
||||
# %n is username
|
||||
# %m is servername
|
||||
# %c is path
|
||||
|
||||
# Simple Prompt
|
||||
EYSTEIN_CURRENT_LOCA_="%{$fg_bold[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
||||
|
||||
# Prompt with user
|
||||
#EYSTEIN_CURRENT_LOCA_='[%{$fg_bold[blue]%}%n@%m%{$reset_color%} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)%{$reset_color%}]$ '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%} <%{$fg[magenta]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[white]%}"
|
||||
|
||||
# Do nothing if the branch is clean (no changes).
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%}>"
|
||||
|
||||
# Add a yellow ✗ if the branch is dirty
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[white]%}> %{$fg[yellow]%}✗"
|
||||
|
||||
# Put it all together!
|
||||
PROMPT="$EYSTEIN_CURRENT_LOCA_ "
|
||||
|
|
@ -15,4 +15,3 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[white]%}> %{$fg[yellow]%}✗"
|
|||
|
||||
# Put it all together!
|
||||
PROMPT="$JARIN_CURRENT_RUBY_ $JARIN_CURRENT_LOCA_ "
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue