From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24729 invoked by alias); 4 Dec 2013 03:22:31 -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: 18191 Received: (qmail 7642 invoked from network); 4 Dec 2013 03:22:17 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=gfXx7+ba6aRJkYfbjQz1VoL7nVCv1xrwV2ivAGcJSJs=; b=mTLiMmBsKah0MfsiIB1XuA+N1G1NpLb4hlzPhpWjKpce1TDAdiPPQ77jiyRaPwQeaU l5aF0ixlTNgmDH/YTLknIfoQvCqLkqbM/a7G45sl1T+1yqBgRrtUIvjQHIKdHKtJ3VNJ UsebFl8QeBE2XhLpFbpIZ7JGw1vEctQXQPW1KS7JNUaz/Iv3mdpMfbD/cRrqBkpQkVl/ G8YWlNmtTbKPlca875e1YeGamm9IIknsGm5JAH5kstkZUOnquhLBoXaiCLRf8+SzxOhN tA4BAQJuzy3TBbfdJrIiwa9n3dzzE/ZoRCrbUy0tolg3in/vvC6JgAgViDjYlySH7Lpk 1GkA== X-Received: by 10.58.46.171 with SMTP id w11mr58550938vem.5.1386127333729; Tue, 03 Dec 2013 19:22:13 -0800 (PST) MIME-Version: 1.0 From: shawn wilson Date: Tue, 3 Dec 2013 22:21:53 -0500 Message-ID: Subject: directory alias To: Zsh Users Content-Type: text/plain; charset=UTF-8 not sure if this is really a 'zsh thing' but I'm looking for a way to create aliases for a command. I don't want a bunch of symlinks in my home directory, and I don't want a universal alias for each directory I commonly cd into. What I want is a way to do: cd foo and it go to ~/some/deep/directory/tree/foo and cd bar and it go to /usr/local/some/path/bar Is there some zsh-ism (or better bash-ism that also works in zsh so that this works on systems I maintain without zsh) to do this without symlinks?