首页 > 解决方案 > 为什么我的终端在尝试 cd 到另一个目录时给我一个错误

问题描述

我正在使用 iTerm 和 oh-my-zsh。当我尝试 cd 进入命令行上的目录时,我收到此消息 Can't find a suitable configuration file in this directory or any parent: not found。

这是一个例子:cd laracan't find a suitable configuration file in this directory or any parent: not found dock

.zshrc

# Path to your oh-my-zsh installation.
export ZSH="/Users/blake/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="amuse"

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh

# User configuration

# Completions Path
fpath=(/usr/local/share/zsh-completions $fpath)

## ALIASES
alias ls='ls -GFh'
alias ll='ls -al'
alias cpwd='pwd | pbcopy; pwd'

## GIT ALIASES
alias gs='git status'

# Checkout
alias co='git checkout'
alias cot='git checkout test'

# Pull and Push
alias pullo='git pull origin'
alias pusho='git push origin'

# Merge
alias gm='git merge'
alias mert='git merge test'

标签: oh-my-zshiterm

解决方案


推荐阅读