I am using zsh+oh-my-zsh and I am using the following code to change
.zshrc
using a hotkey and I am trying to reload omz after the change:
function f() {
# ... update .zshrc here ...
omz reload
}
zle -N f
bindkey "^[=" f # Alt+=
However, hitting the hotkey closes the current terminal. This is a result of calling omz reload
(which by itself callsexec zsh
)
Is there a another way to reload zsh/omz without this causing the terminal to be closed?
Asked by Udi
(193 rep)
Jul 23, 2024, 05:00 AM
Last activity: Jul 24, 2024, 12:44 PM
Last activity: Jul 24, 2024, 12:44 PM