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

Powerlevel10k changes exit behavior in vim/vifm shell #717

Closed
KodyVB opened this issue May 14, 2020 · 2 comments
Closed

Powerlevel10k changes exit behavior in vim/vifm shell #717

KodyVB opened this issue May 14, 2020 · 2 comments

Comments

@KodyVB
Copy link

KodyVB commented May 14, 2020

I just did a fresh install of Arch on my computer and wanted to get away from OhMyZsh since it had so many things I just never use, so I made a new zshrc. I downloaded powerlevel10k via pacman and went through the usual procedures, resulting in the following zshrc and .config files in this gitlab link (ignore commands.txt as that's just the programs I installed, and was part of my initial Reddit question linked below). The problem comes when I use vim or vifm, and use the :shell command.

Normally, when you're in vim or vifm, you can use :shell to go to the normal terminal screen, do your stuff, then use exit to go back to vim or vifm. But with p10k installed, it outputs:

[me ~ ] exit
zsh: suspended (tty output)   vim
[me ~ ] exit
zsh: You have suspended jobs.
[me ~ ] exit
<terminal closes>

This link goes further into details about my problem, when I asked about it on Reddit.

This problem only happens when I use Powerlevel10k, and after I found that out I tried doing the direct install method (as opposed to the Arch install method) and had the same problems.

I use zsh 5.8, my kernel is 5.6.12-arch1-1, and this problem persisted with all four terminals I tested, being: Alacritty, ST, Konsole, and Gnome-terminal.

@romkatv
Copy link
Owner

romkatv commented May 15, 2020

Thanks for the report.

Looks like a bug in zsh. I've reported it upstream: https://www.zsh.org/mla/workers//2020/msg00652.html.

I've pushed a workaround to powerlevel10k. Please update (from master branch), restart zsh and try again.

@romkatv
Copy link
Owner

romkatv commented May 15, 2020

Closing as the OP has confirmed the workaround is working: https://www.reddit.com/r/archlinux/comments/gju5y6/my_exit_command_is_behaving_weirdly/fqoq1r2/.

@romkatv romkatv closed this as completed May 15, 2020
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

2 participants