Skip to main content

prx cd

Change to a project directory.

Syntax

prx cd [project]

Description

Outputs a shell command that changes directory. Use with eval to execute the command.

Examples

Change directory by ID

eval "$(prx cd 1)"

Change directory by name

eval "$(prx cd projax)"

Interactive selection

eval "$(prx cd)"

You'll be prompted to select a project.

Shell Integration

For easier use, add this to your ~/.zshrc or ~/.bashrc:

prxcd() {
eval "$(prx cd $@)"
}

Then simply use:

prxcd 1
prxcd "My Project"
prxcd # Interactive selection

How It Works

The command outputs a shell cd command that you execute with eval. This allows the command to change the directory in your current shell session.

Alternative

You can also use prx pwd with command substitution:

cd $(prx pwd 1)
  • prx pwd - Get project path (alternative method)
  • prx list - View all projects