forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: Add proper prompt_opts to smiley prompt Revert "Only call reset-prompt when the appropriate zstyle is set" Feat (git): add an alias displaying the commits yet to be applied to upstream (sorin-ionescu#1565) Allow users to easily define LS_COLORS and LSCOLORS (sorin-ionescu#1546) Ignore tmux autostart in vscode terminal Replace git with 'command git' (sorin-ionescu#1551)
- Loading branch information
Showing
23 changed files
with
84 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
return 1 | ||
fi | ||
|
||
|
@@ -21,15 +21,15 @@ _arguments -C -s -S \ | |
|
||
case "$state" in | ||
(remote) | ||
remotes=($(git config --get-regexp 'remote.*.url' | cut -d. -f2)) | ||
remotes=($(command git config --get-regexp 'remote.*.url' | cut -d. -f2)) | ||
|
||
_describe -t branch 'remotes' remotes && ret=0 | ||
;; | ||
(branch-or-tag) | ||
remote="$words[(($CURRENT - 1))]" | ||
|
||
branches_or_tags=($( | ||
git ls-remote --heads --tags "$remote" 2> /dev/null | cut -f2 | ||
command git ls-remote --heads --tags "$remote" 2> /dev/null | cut -f2 | ||
)) | ||
|
||
branches=(HEAD ${${(M)branches_or_tags[@]##refs/heads/?##}##refs/heads/}) | ||
|
@@ -39,7 +39,7 @@ case "$state" in | |
_describe -t tag 'tags' tags && ret=0 | ||
;; | ||
(file) | ||
files=(${(0)"$(_call_program files git ls-files -z --exclude-standard 2> /dev/null)"}) | ||
files=(${(0)"$(_call_program files command git ls-files -z --exclude-standard 2> /dev/null)"}) | ||
_wanted file expl 'file' _multi_parts - / files && ret=0 | ||
;; | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
return 1 | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
return 1 | ||
fi | ||
|
||
|
@@ -25,7 +25,7 @@ case "$state" in | |
while IFS=$'\n' read submodule; do | ||
submodules+=("$submodule") | ||
done < <( | ||
git config --file "$(git-root)/.gitmodules" --list \ | ||
command git config --file "$(git-root)/.gitmodules" --list \ | ||
| grep '.path=' \ | ||
| cut -d= -f2- | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
if ! is-true "$(command git rev-parse --is-inside-work-tree 2> /dev/null)"; then | ||
return 1 | ||
fi | ||
|
||
|
@@ -18,7 +18,7 @@ local submodule | |
while IFS=$'\n' read submodule; do | ||
submodules+=("$submodule") | ||
done < <( | ||
git config --file "$(git-root)/.gitmodules" --list \ | ||
command git config --file "$(git-root)/.gitmodules" --list \ | ||
| grep '.path=' \ | ||
| cut -d= -f2- | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.