Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
d2dfa694
Commit
d2dfa694
authored
Feb 07, 2017
by
slavaGanzin
Browse files
change name of overriden zle-line-init
parent
a90527b4
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
View file @
d2dfa694
...
@@ -18,10 +18,10 @@ function git-auto-fetch {
...
@@ -18,10 +18,10 @@ function git-auto-fetch {
echo
"
${
fg_bold
[red]
}
disabled
${
reset_color
}
"
)
echo
"
${
fg_bold
[red]
}
disabled
${
reset_color
}
"
)
}
}
eval
"o
riginal
-
$(
declare
-f
zle-line-init
)
"
eval
"o
verride-git-auto-fetch
-
$(
declare
-f
zle-line-init
)
"
function
zle-line-init
()
{
function
zle-line-init
()
{
git-fetch-all
git-fetch-all
o
riginal
-zle-line-init
o
verride-git-auto-fetch
-zle-line-init
}
}
zle
-N
zle-line-init
zle
-N
zle-line-init
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment