mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge 2cd1323e0a into 220eccf0a9
This commit is contained in:
commit
c3b4886016
2 changed files with 10 additions and 1 deletions
|
|
@ -30,6 +30,13 @@ function git_prompt_long_sha() {
|
|||
SHA=$(git rev-parse HEAD 2> /dev/null) && echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER"
|
||||
}
|
||||
|
||||
# Checks if there are stashed changes
|
||||
function git_prompt_stash() {
|
||||
if [[ -n $(git stash list 2> /dev/null) ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_STASH"
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the status of the working tree
|
||||
git_prompt_status() {
|
||||
INDEX=$(git status --porcelain 2> /dev/null)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
if [ -f `brew --prefix`/etc/autojump ]; then
|
||||
if [ -e /etc/profile.d/autojump.zsh ]; then
|
||||
. /etc/profile.d/autojump.zsh
|
||||
elif [ -f `brew --prefix`/etc/autojump ]; then
|
||||
. `brew --prefix`/etc/autojump
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue