mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-15 15:51:42 +00:00
[Fix #60] Do not use parentheses in function names
This commit is contained in:
@ -86,7 +86,7 @@ alias giu='git add --update'
|
||||
compdef _git giu=git-add
|
||||
alias gid='git diff --no-ext-diff --cached'
|
||||
compdef _git gid=git-diff
|
||||
function giD() { git diff --no-ext-diff --cached --ignore-all-space "$@" | view - }
|
||||
function giD { git diff --no-ext-diff --cached --ignore-all-space "$@" | view - }
|
||||
compdef _git giD=git-diff
|
||||
alias gir='git reset'
|
||||
compdef _git gir=git-reset
|
||||
@ -235,7 +235,7 @@ alias gwS='git status'
|
||||
compdef _git gwS=git-status
|
||||
alias gwd='git diff --no-ext-diff'
|
||||
compdef _git gwd=git-diff
|
||||
function gwD() { git diff --no-ext-diff --ignore-all-space "$@" | view - }
|
||||
function gwD { git diff --no-ext-diff --ignore-all-space "$@" | view - }
|
||||
compdef _git gwD=git-diff
|
||||
alias gwr='git reset --soft'
|
||||
compdef _git gwr=git-reset
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
# Gets the path to the Git directory.
|
||||
function _git-dir() {
|
||||
function _git-dir {
|
||||
local git_root="$(git-root)"
|
||||
local git_dir_or_file="${git_root}/.git"
|
||||
local git_dir
|
||||
@ -31,7 +31,7 @@ function _git-dir() {
|
||||
|
||||
# Gets the Git special action (am, merge, rebase, etc.).
|
||||
# Borrowed from vcs_info and edited.
|
||||
function _git-action() {
|
||||
function _git-action {
|
||||
local action=''
|
||||
local action_dir
|
||||
local git_dir="$(_git-dir)"
|
||||
@ -90,7 +90,7 @@ function _git-action() {
|
||||
}
|
||||
|
||||
# Turns off git-info for the current repository.
|
||||
function _git-info-abort() {
|
||||
function _git-info-abort {
|
||||
if ! is-true "$_git_info_executing"; then
|
||||
return 1
|
||||
fi
|
||||
@ -115,7 +115,7 @@ EOF
|
||||
add-zsh-trap INT _git-info-abort
|
||||
|
||||
# Gets the Git status information.
|
||||
function git-info() {
|
||||
function git-info {
|
||||
# Extended globbing is needed to parse repository status.
|
||||
setopt LOCAL_OPTIONS
|
||||
setopt EXTENDED_GLOB
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
if (( $+commands[hub] )); then
|
||||
function git() {
|
||||
function git {
|
||||
hub "$@"
|
||||
}
|
||||
fi
|
||||
|
Reference in New Issue
Block a user