rupa / z

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

z acts like in zsh when ran from tmux #140

Closed jozsefDevs closed 9 years ago

jozsefDevs commented 10 years ago

If I run z from tmux it outputs

-bash: (r)_z_precmd: syntax error in expression (error token is "_z_precmd")

so it is totally behaving like it is in zsh. It gets true for the if compctl >/dev/null 2>&1; then clause however it should not do under bash.

I suggest to somehow check if tmux is installed because it looks like getting this check totally wrong.

If I keep just the else part of this last check however it works charmfully (even from tmux), great stuff, thanks!

janwirth commented 9 years ago

When I run z from tmux it's working fine, using zsh.

jozsefDevs commented 9 years ago

I've created this issue when I used Ubuntu (12.something). Someone probably has to check again because now I use Max OS X (Yosemite) and it's working well in tmux. I don't have access to an Ubuntu box now :(.

janwirth commented 9 years ago

Ubuntu 15.4 here.

jozsefDevs commented 9 years ago

Okay, then solved. Thank you.