2

OSXでターミナルvimを使用しており、自作でctagsをインストールしました

/usr/local/bin/次に、ディレクトリをPATHに追加しました

また、自作のインストール済みバージョンを使用するために CTAGS をエイリアス化しました

これはすべて私の.zshrcにあり、正常に動作します。

問題は、:!ctags -R .VIM 内で実行しようとすると

オプション「-R」を認識しないため失敗します

走っ:!which ctagsて帰ってきた

/usr/bin/ctags

代わりに/usr/local/bin/ctags

これを解決する方法はありますか?

アップデート

zshrc ファイルを追加します

# number of lines kept in history
export HISTSIZE=1000
# number of lines saved in the history after logout
export SAVEHIST=1000
# location of history
export HISTFILE=~/.zhistory
# append command to history file once executed
setopt inc_append_history

autoload -U compinit
compinit

# Colors
autoload -U colors
colors
setopt prompt_subst

# Save a smiley to a local variable if the last command exited with success.
local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"

# Show the relative path on one line, then the smiley.
PROMPT='%{$fg[cyan]%}%~ ${smiley} %{$reset_color%}'

RPROMPT='%{$fg[cyan]%} $(~/Dotfiles/rbenv-version.sh)$(~/Dotfiles/git-cwd-info.sh)%{$reset_color%}'

# Example aliases
source ~/Dotfiles/zsh/aliases
source ~/Dotfiles/zsh/plugins/bundler.zsh

export SHELL=/bin/zsh

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH=/usr/local/bin:$PATH

eval "$(rbenv init -)"

export LC_ALL=en_US.utf-8
export LANG="$LC_ALL"

export EDITOR=vim
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
4

1 に答える 1