Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: possibly useful zsh_directory_name implementation
- X-seq: zsh-users 15867
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: possibly useful zsh_directory_name implementation
- Date: Fri, 11 Mar 2011 18:44:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=6HrJpM5vi8RGWuVo2vG0LC9Blvtdw4drbzYxTx+21DY=; b=JApKerv+FLyoMtKIHkQ9wGsoFXU4oJWTfIj9f4bLCKFWeo1IjksDPQQI10Qmcebx6f c8U9ZQEvgMvUxNHJK8vw5s8SHaIMes8feEIyRTbTnhUmJ5Xn/gb7nC6kuL+5VniKd9jv MV7i4lSFYnPQEpHA4D/x/Mj7g+o5X9+dh7RsI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=R1MO4sL7bIBolGOGO2eP0vt+ZdbaAwz2QoXoulByK1Mt6qki8XTt5KUITHsnU9wk8F SRXizxXSXiIUHv5hloxyYJDa2/pq7Rsfph3VN272kcVlfjBoraq8BBMsri5ek/XH3HlI Yu2WtfzTBby/dDMFeu3irrrWgrUA62irwor3c=
- In-reply-to: <AANLkTin+cCxFRYtwZXGSUWyLjfe7NV-eDx1mcS9sSau0@mail.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: <AANLkTin+cCxFRYtwZXGSUWyLjfe7NV-eDx1mcS9sSau0@mail.gmail.com>
2011/3/11 Mikael Magnusson <mikachu@xxxxxxxxx>:
> function zsh_directory_name () {
> …
> }
>
> With this, /home/mikachu/some/directory/somewhere% cd ~[/some], will
> take you to /home/mikachu/some/, and cd ~[.foo] will take you to foo/
> in whatever parent directory has a subdirectory foo, for example it
> could be /home/foo/.
Looks useful to me :-)
Thanks for sharing!
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author