Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Changing mintty background color based on directory?
- X-seq: zsh-users 16881
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: reckoner <reckoner@xxxxxxxxx>
- Subject: Re: Changing mintty background color based on directory?
- Date: Wed, 14 Mar 2012 19:31:51 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ygp3UTiZ4tbkWEHld+OD1UXiAETm2zsljV9ghuEB2ao=; b=gvBt7kbtbXXnayUbUbktXrq7uY+tDV/W7kLCeQ87LKEmNUvWrxsVpUEC/qFc6Rq5rT EkNtCFkZXwKVGA7JqoF6hK42T8fq7zSJru9nJMfq9p4a4la+AmgaXj72zfncRrIs537Z IM1K3WlWrcgfUq1+d7mj3ZeRF2i0ZluQl3q2rUxGDkOW/IhxEuSxy5E29NPkEgOWKHYp q4xj4xINRtV4Vk4f4q2lOO4TZNxMXHOH1rby42Je+OyPX+xo4ecegxJKlo6c3bZG4wtC Fd8fRivw4D2w5MC6jcuAGX2b6n+GDev3EcoOywscYkk5EYvcf1U2rpZrdzXDPbSaDXY4 bqfQ==
- In-reply-to: <4F60E2B4.6040301@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F60E2B4.6040301@gmail.com>
On 14 March 2012 19:25, reckoner <reckoner@xxxxxxxxx> wrote:
> Hi,
>
> I am using zsh (version 4.3.10) on cygwin with mintty as the terminal. Is it
> possible to change the background color of mintty when I change directories?
> One can change the colors in mintty on the fly by sending escape sequences
> as described here:
>
> http://code.google.com/p/mintty/wiki/Tips#Changing_colours
>
> I just don't know how to get this to work w/ zsh as the directory is
> changed.
The chpwd() function is called by zsh every time the current directory
changes, and all functions listed in the chpwd_functions array (ie,
chpwd_functions=( myfoo_chpwd ) would make myfoo_chpwd be called too).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author