Skip to content
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

Semicolon ';' on wrong position in z.sh? #294

Open
tobip opened this issue Oct 8, 2020 · 0 comments
Open

Semicolon ';' on wrong position in z.sh? #294

tobip opened this issue Oct 8, 2020 · 0 comments

Comments

@tobip
Copy link

tobip commented Oct 8, 2020

Because of some other troubles in my bash configuration, I found that the semicolon ; in line 246 in z.sh seems to be misplaced.

My $PROMPT_COMMAND ends up being this:
history -a; history -n; _update_ps1 (_z --add "$(command pwd -P 2>/dev/null)" 2>/dev/null &);; printf "" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"
what breaks the command because of double ;;

Instead of this:
PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &);'
I guess it should be this:
PROMPT_COMMAND="$PROMPT_COMMAND"$';\n''(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant