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
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
if (( $+commands[gdircolors] )); then
|
||||
function __gnu_utils() {
|
||||
function __gnu_utils {
|
||||
emulate -L zsh
|
||||
local gcmds
|
||||
local gcmd
|
||||
|
|
@ -46,7 +46,7 @@ if (( $+commands[gdircolors] )); then
|
|||
}
|
||||
__gnu_utils;
|
||||
|
||||
function hash() {
|
||||
function hash {
|
||||
if (( $+argv[(er)-r] )) || (( $+argv[(er)-f] )); then
|
||||
builtin hash "$@"
|
||||
__gnu_utils
|
||||
|
|
@ -55,7 +55,7 @@ if (( $+commands[gdircolors] )); then
|
|||
fi
|
||||
}
|
||||
|
||||
function rehash() {
|
||||
function rehash {
|
||||
hash -r "$@"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue