-
EnvironmentOSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9 Expected behaviorZsh starts without problems Current behaviorWhen starting zsh, never finishes and prompt is not shown unless aborted. I run zsh -i -x -c exit and then press Ctrl+C to abort it seems to stuck here
Steps to reproduceSimply run zsh with given config. Code snippetYou can find my config and sources aliases etc. [here][https://github.com/papanito/dot-files/tree/0dde680e4e7da40e976795ee5d3b52d781abb843/personal/shell). This
Aditional informationMoving the sourcing of
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Unable to reproduce the issue as the given configuration passes tests and loads. Seems that It indicates that the issue with the add-zsh-hook preexec pre_validation and also related with: You can use |
Beta Was this translation helpful? Give feedback.
-
Well the function is defined in
|
Beta Was this translation helpful? Give feedback.
-
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 (check: I recommend updating/fixing all dotfiles. Here are some references to take into consideration: https://github.com/z-shell/playground/tree/main/profiles It is possible to create dotfiles ( Example # -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
# vim: ft=zsh sw=2 ts=2 et
#
#https://wiki.zshell.dev/community/zsh_plugin_standard#zero-handling
0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}"
0="${${(M)0:#/*}:-$PWD/$0}"
# Autoload personal functions
fpath=("${0:h}/functions" "${fpath[@]}")
autoload -Uz $fpath[1]/*(.:t)
typeset -gA Local
Local[CONFIG_DIR]="${0:h}"
Local[THEMES_DIR]="${0:h}/themes"
Local[COMPLETIONS_DIR]="${0:h}/completions"
Local[COOL_STUFF_HERE_DIR]="${0:h}/some_cool_stuff" |
Beta Was this translation helpful? Give feedback.
-
thanks for having a look, will read through the links you provided and adjust my dotfiles. the doc is amazing and really helps me better understand zsh. |
Beta Was this translation helpful? Give feedback.
-
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Issue closed and locked due to lack of activity. |
Beta Was this translation helpful? Give feedback.
Your configuration has quite a few issues, and bad practices. For this specific issue you have a function:
It is a shell built-in command and has to be removed/renamed to solve this issue…