【发布时间】:2023-04-09 14:50:01
【问题描述】:
我在研究这个问题时有点不知所措......我只需要问一下。
我的 Mavericks 机器上有 oh-my-zsh,并且所有内容都已更新。我也有 Xcode 和 Brew。全部更新。根据这个页面:https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet我不应该只输入,说:“g”[tab]并得到“git”吗?或键入“md”[tab] 并获取“mkdir -p”?现在我只是得到一个选项列表,我可以通过标签(或箭头)...我认为它会自动完成。我错过了什么?
我感觉它可能与我的 $PATH 有关,但这也是我感到困惑的地方......它应该指向哪里?
我非常感激和启迪。
# Path to your oh-my-zsh configuration.
#ZSH=$HOME/.oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="af-magic"
ZSH_THEME="agnoster"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git textmate sublime zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
#export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/$
#export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/usr/local/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
zstyle ':completion:*' list-prompt ''
zstyle ':completion:*' select-prompt ''
autoload -Uz compinit
compinit
【问题讨论】:
标签: plugins autocomplete alias zsh zshrc