rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.39k stars 1.17k forks source link

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

Open tobip opened 4 years ago

tobip commented 4 years ago

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 &)'