You are not logged in.

#1 2010-01-04 07:33:04

nbyers
Member
From: Washington
Registered: 2009-04-18
Posts: 19

ZSH Tab Complete Problem

Hey guys, I am having a weird problem with my ZSH PS1. Everytime I add some color to my PS1, I get this tab complete problem:
201001032323571366x768s.th.png
And my PS1:

export PS1="[${fg_cyan}%n${fg_blue}@${fg_brown}%M${fg_blue}] %c${fg_lcyan} $ ${fg_lgray}${at_normal}"

Anyone else having a similiar problem?

Last edited by nbyers (2010-01-04 07:43:19)


HP Mini 311 - Arch Linux i686
AMD Phenom II X4/4GB DDR3 1600/ATI 4870 1GB - Arch Linux x64

Offline

#2 2010-01-04 09:16:04

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: ZSH Tab Complete Problem

I think the method you're using is giving zsh trouble determining the prompt length.  Could you try:

export PS1="[%F{cyan}%n%F{blue}@%F{yellow}%M%F{blue}] %c%F{cyan} $ %F{lgray}%f "

Offline

#3 2010-01-04 09:20:25

nbyers
Member
From: Washington
Registered: 2009-04-18
Posts: 19

Re: ZSH Tab Complete Problem

Thanks a ton, that fixed it smile


HP Mini 311 - Arch Linux i686
AMD Phenom II X4/4GB DDR3 1600/ATI 4870 1GB - Arch Linux x64

Offline

Board footer

Powered by FluxBB