Skip to content

zsh: command not found: z #1086

Closed
Closed
@Scott-McMullan-ABB

Description

@Scott-McMullan-ABB

Device: MacBook Pro
Chip: Apple M2 Pro
OS: macOS Sequoia (15.5)
zsh: 5.9 (arm64-apple-darwin24.0)
zoxide: 0.9.8

I installed zoxide with brew install zoxide and this is my .zshrc file.

# Path exports
export PATH="$HOME/bin:$PATH"
export PATH="/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin:$PATH"

# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"

# Zsh Autocompletion setup
# Add custom completion paths before initializing compinit
# Only add ~/.zsh to fpath if you have custom completion files there
# fpath=(~/.zsh $fpath) # Uncomment if you have Zsh completion files in ~/.zsh
autoload -Uz compinit && compinit
# If you make changes to completions or install new ones, you can manually run:
# rm ~/.zcompdump && compinit

# https://github.com/eza-community/eza
alias ls="eza -lahF --icons=always"

# Laravel Sail alias (consider limitations)
# This alias assumes you are in the project root.
# For more flexibility, consider adding vendor/bin to PATH in project contexts
alias sail=./vendor/bin/sail

# https://github.com/junegunn/fzf
alias fzf="fzf --style=full --preview 'bat --color=always --style=numbers --line-range=:500 {}'"

If I run z or z foo, then I get zsh: command not found: z. As far as I can tell, I installed it correctly. Is there anything wrong with my configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions