Score:2

Getting defining function based on alias `z' error everytime open the terminal

my flag

Getting this bellow error every time when opening my terminal (ZSH using)

(eval):10: defining function based on alias `z'
(eval):10: parse error near `()'

Also why getting this error after every time execute anything via terminal

bgnotify_end:5: condition expected: 0x0 

Why getting this and how to solve it?

Sadaharu Wakisaka avatar
pl flag
Welcome to AskUbuntu, I do not know what zsh is, but a backquote and an apostrophe are very different characters, also known as grave and acute.
my flag
info: https://www.zsh.org/
cc flag
Sounds like a messed up definition in your ~/.zshrc
my flag
Check every parameter. Even remove the plugin https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/z
waltinator avatar
it flag
Try `zsh -x ~/.zshrc` to see what's going on.
my flag
Tried but not worked.
Score:1
pk flag

Anyone finding this because of error:

(eval):10: defining function based on alias `z'
(eval):10: parse error near `()' 

My solution was to add function at the function declaration. See https://github.com/ohmyzsh/ohmyzsh/issues/6723#issue-313463147

Score:0
my flag

After checking several things, finally found the issue it came for

source $ZSH/oh-my-zsh.sh

which I have removed and reinstall again. Now everything is fine. Thanks, everything.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.