5

How to set an alias on a per-directory basis?

view full story
linux-howto

http://unix.stackexchange.com – Suppose you have an alias go, but want it to do different things in different directories? In one directory it should run cmd1, but in another directory it should run cmd2 By the way, I have an aliases for switching to the above directories already, so is it possible to append the go alias assignment to the foo alias? alias "foo=cd /path/to/foo" Working in bash(?) on OSX. (HowTos)