From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8870 invoked by alias); 4 Nov 2014 03:44:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19325 Received: (qmail 11001 invoked from network); 4 Nov 2014 03:43:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=HrPBwPXX c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YzLtNz8nkVwB6M_rSUEA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141103194346.ZM32278@torch.brasslantern.com> Date: Mon, 03 Nov 2014 19:43:46 -0800 In-reply-to: Comments: In reply to Shiyao Ma "How to stop dir expansion in the prompt?" (Nov 4, 11:23am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: How to stop dir expansion in the prompt? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 4, 11:23am, Shiyao Ma wrote: } } If I cd to a directory like ~/.virtualenvs, the prompt will show as } ~WORKON_HOME. } } I wonder, is there a option to disable the auto expansion? That expansion is the %~ prompt replacement, so one way to avoid this is to change zstyle ':vcs_info:*' nvcsformats "%~" "" to zstyle ':vcs_info:*' nvcsformats "%2d" "" or similar. If this is unsatisfactory, you should unsetopt AUTO_NAME_DIRS and possibly also unsetopt CDABLE_VARS unless you are actually using those features. There's no way to disable the action of %~ on named directories once a named directory entry is created.