Problems with v0.1.x & tmux #97

Closed
hcgraf opened this Issue Jan 29, 2016 · 4 comments

2 participants

@hcgraf

I tried to track down the problems of my comment to PR #91.

The two issues

  1. No autocompletions at all
  2. Cursor disappearing randomly

seem to be related to tmux in some way.

On Ubuntu Linux 15.10, with zsh 5.1.1, with a completely new user and the minimal zshrc (and no .tmux.conf):

autoload -U colors && colors
autoload -Uz compinit && compinit

ZGEN_DIR="${HOME}/.zsh-plugins"
ZGEN_RESET_ON_CHANGE=("${HOME}/.zshrc")

source "${HOME}/.zgen/zgen.zsh"

if ! zgen saved; then
        echo "Creating a zgen save"

        # provides zle hooks
        zgen load willghatch/zsh-hooks

        zgen load tarruda/zsh-autosuggestions.git . v0.1.x

        # save
        zgen save
fi

function my-line-init() {
        # automatically enable autosuggestion
        autosuggest_start
}
hooks-add-hook zle_line_init_hook my-line-init

Everything seems to be ok, if

  • zsh is started from bash
  • tmux is started from bash, and zsh is started within tmux

But I don't get any autosuggestions if

  • tmux is started from zsh (which is usually the case if zsh is the login shell)
@ericfreese ericfreese modified the milestone: v0.1.0 Jan 29, 2016
@ericfreese ericfreese added the bug label Jan 30, 2016
@ericfreese
zsh-users member

Can you try with a more minimal .zshrc? Something like:

source ~/path/to/zsh-autosuggestions/autosuggestions.zsh
autosuggest_start
@hcgraf

Hm, it seems to work now, also with my less minimal zshrc.
Thanks for your efforts!

@hcgraf hcgraf closed this Feb 2, 2016
@hcgraf

With my full zshrc, the problem persists.
I will see if I find some time to track it down…

@hcgraf

Ok, it was related to my color-scheme, the autosuggestion was working, just with the same color as my background >_<
Sorry for the noise…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment