SpicyCode

The ramblings of Chad Humphries

Type the project name to change to it’s directory in ZSH

Inspired by Muness I decided to implemented lazy project aliases in ZSH.  It’s a two step process.

1) Set your cd path

export CDPATH=~/programming/mine:~/programming/work:~/

2) Enable auto cd for directory names

setopt auto_cd

3) Profit?

Advertisements

Written by spicycode

August 7, 2008 at 6:43 pm

Posted in programming

Tagged with

%d bloggers like this: