mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
[Fix #60] Do not use parentheses in function names
This commit is contained in:
parent
a3b92bb053
commit
6a9a4ea8d6
22 changed files with 66 additions and 67 deletions
|
|
@ -99,7 +99,7 @@ fi
|
|||
|
||||
# Diff/Make
|
||||
if zstyle -t ':omz:alias:diff' color; then
|
||||
function diff() {
|
||||
function diff {
|
||||
if (( $+commands[colordiff] )); then
|
||||
"$commands[diff]" --unified "$@" | colordiff --difftype diffu
|
||||
elif (( $+commands[git] )); then
|
||||
|
|
@ -109,7 +109,7 @@ if zstyle -t ':omz:alias:diff' color; then
|
|||
fi
|
||||
}
|
||||
|
||||
function wdiff() {
|
||||
function wdiff {
|
||||
if (( $+commands[wdiff] )); then
|
||||
"$commands[wdiff]" \
|
||||
--avoid-wraps \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue