Terminal_Logo_CRT_Small

config.fish for phpenv, rbenv, homebrew, npm

昨日書いたFish ShellはじめましたでPATHは直で書かなくてもいいと思ってたんですが、優先順序やphpenvとrbenvに問題が合ったのでconfig.fishに書きました。

# ~/.config/fish/config.fish
# homebrew
set -x PATH /usr/local/bin /usr/local/sbin $PATH
 
# phpenv
#eval "$(phpenv init -)"
set -x PATH $HOME/.phpenv/bin $PATH
set -x PATH $HOME/.phpenv/shims $PATH
phpenv rehash >/dev/null ^&1
 
# rbenv
#eval "$(rbenv init -)";
set -x PATH $HOME/.rbenv/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
 
# npm
#export PATH="/usr/local/share/npm/bin:$PATH"
set -x PATH /usr/local/share/npm/bin $PATH

Comments

One thought on “config.fish for phpenv, rbenv, homebrew, npm

Comments are closed.