zsh prompt line position not shifting with window resizing

Ian Zhao

I recently came across ZSH and found it very helpful for rails development and git integration. I've follow the setup steps and have my terminal ZSHed. But I found one little annoying thing this morning.

When I'm using zsh in the terminal, it looked fined at the start. Like this: enter image description here

but When I'm resizing the window and after it's done. The prompt line is not shifting when window is resizing so it gave me an odd look, like this! enter image description here

see the red box there? The prompt should be at the top of the window as it was, right? But it didn't, it went down when I'm resizing the window. This is odd...any hints why this is happning? Do I have to fix something in .zshrc?

Thanks a lot in advance!

BTW: I'm using latest Mac OSX. Maverick

Max Rahm

So I also have this problem and I don't have a solution but here's one thing I have noticed. It's that this isn't a problem when using bash as your default shell. So I started to look into it. When bash runs it looks to /etc/profile and /etc/profile loads /etc/bashrc. When I looked in /etc/bashrc there was one line that seems like it might be related:

# Make bash check its window size after a process completes
shopt -s checkwinsize

I'm not sure if this is related or not but when I run that command in zsh I get:

zsh: command not found: shopt

Perhaps someone more familiar with bash/zsh/osx can make more sense of this.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Reload zsh when resizing terminator window

From Dev

Tmux and ZSH custom prompt : bug with window name

From Dev

SDL2 Resizing the window + mouse position

From Dev

fix image position when resizing window

From Dev

SDL2 Resizing the window + mouse position

From Dev

HTML changes position when resizing window

From Dev

Zsh prompt char disappears when window resizes or prompt otherwise resets

From Dev

zsh new line prompt after each command

From Dev

zsh new line prompt after each command

From Dev

Resizing a maximized window from the command line

From Dev

Isotope, absolute position of items not correct on when resizing window

From Dev

How to setup svg to change position when resizing the window?

From Dev

Window not resizing

From Dev

Configure shell to always print prompt on new line, like zsh

From Dev

Zsh prompt filling whole width with user input in next line

From Dev

Svg Object moving along a line path and resizing with the window

From Dev

How to get Output of a Command Prompt Window line by line in Visual Basic?

From Dev

How to stop lines of code from automatically shifting to the next line whenever I resize the window of the editor?

From Dev

CSS animation shifting position with transform

From Dev

How to return text from window.prompt() that retains line breaks?

From Dev

Why does my zsh prompt wander upwards when window is too narrow?

From Dev

Shorten path in zsh prompt

From Dev

Issues with Zsh prompt

From Dev

zsh prompt and hostname

From Dev

Collapse directories in zsh prompt

From Dev

ZSH 'Sticky' Prompt

From Dev

Shortening my prompt in Zsh

From Dev

Expansion in zsh prompt

From Dev

Shorten path in zsh prompt

Related Related

HotTag

Archive