Skip to content

Instantly share code, notes, and snippets.

@noboo
Created July 27, 2019 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noboo/600375b9c541634c594854bd8f906515 to your computer and use it in GitHub Desktop.
Save noboo/600375b9c541634c594854bd8f906515 to your computer and use it in GitHub Desktop.
homebrewのbashrcとbash_profile

homebrewのbashrcとbash_profile

使用状況 -v

  • Mojave 10.14.2

homebrewインストール

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

bashrcとbash_profileがあるか確認

ls -al

bashrcとbash_profile作成

$ touch .bashrc
$ touch .bash_profile

.bashrcに書き込み

export PATH="/usr/local/bin:$PATH"

.bash_profileに書き込み

if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi

パスを通す

$ source ~/.bashrc
$ source ~/.bash_profile

memo

反省点 bashrcにパスを通すのを直ぐに忘れてしまう...

参考にさせて頂いたサイト:ありがとうございます。


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment