Skip to content

[bug]: zsh startup never finishes and prompt is not shown unless aborted #224

Locked Answered by ss-o
papanito asked this question in Q&A
Discussion options

You must be logged in to vote

Well the function is defined in ~/.functions, which is sourced before the hook

if [ -f ~/.functions ]; then . ~/.functions ; fi
if [ -f ~/.azure_completion ]; then . ~/.azure_completion ; fi

autoload -U add-zsh-hook                      # Load the zsh hook module. 
add-zsh-hook preexec pre_validation           # Adds the hook

Your configuration has quite a few issues, and bad practices. For this specific issue you have a function:

# finds all functions defined in any shell script specified, including .bashrc
function functions() { 
   read -p $1; sort -d $REPLY | grep "() {" | sed -e 's/() {//g' | less;
}

It is a shell built-in command and has to be removed/renamed to solve this issue…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ss-o
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
resolved ☑️ The issue has been fixed and is therefore considered resolved. Q&A ✍️ Questions and answers.
2 participants
Converted from issue

This discussion was converted from issue #183 on October 21, 2022 11:23.