Directory Aliases

Directory aliases map short names to paths:

directories:
  homelab: ~/projects/homelab
  work: /Users/me/code/work

List configured aliases:

eggl cd list

Resolve an alias:

eggl cd homelab

The command prints the path but cannot change the parent shell's working directory. Use command substitution:

cd "$(eggl cd homelab)"

For a shorter command, define a shell function:

egglcd() { cd "$(eggl cd "$1")" || return; }