-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell prompt lag in macOS #318
Comments
Kind bump. Thanks! |
have you tried adding as in:
|
Thanks, @Lockszmith-GH. I've just now -- no noticeable improvement.
|
Z stores it's history in a ~/.z file. One way I use to debug my
it will output every line before evaluation (-v) and after (-x) it executes. If it's opaque and in the z source, try running the same command calling z that stalls the same way, and that may help identify the cause. |
Thanks for the reply. macOS:
Ubuntu:
I'm not sure what you mean here. Here's an excerpt from
|
OK, so if What you need to 'look into' is
Hope all of this actually helps. |
Longtime user and fan of z.sh. After many attempts to no avail at debugging the following, I'm opening this issue for discussion.
I'm running two machines, a macOS (local) and an Ubuntu (remote,) with the same dotfiles and shell configuration. Both are running the same version of bash (
5.1.16(1)
.) Both shells are interactive login shells. And yet, whenz.sh
is sourced, the macOS shell prompt experiences a short but highly noticeable lag on eachReturn
press, while the Ubuntu prompt is rendered instantly.I was wondering if anyone else is experiencing the same issue (or similar) and how to fix — if possible.
Shell environment settings: (also available in my repo)
~/.bash_profile
which sources three different bash files where.shell/utils.sh
is relevant for our case~/.shell/utils
which exportsPROMPT_COMMAND
withhistory -a
and at the end of the file sourcesz.sh
from a specific directory:PROMPT_COMMAND
or other shell configurations occur at the shell level after sourcingz.sh
above.As such, the
PROMPT_COMMAND
reads:history -a (_z --add "$(command pwd -P 2>/dev/null)" 2>/dev/null &);
$HOME/.bin/z.sh
reflects the latest version from the master brach.This has been also tested on a fresh macOS virtual machine with the same results.
The text was updated successfully, but these errors were encountered: