.bashrcなどを変更したときにすぐに反映される方法
一回ターミナルを閉じ直して、もう一度開き直せば反映されますが、コマンドからやるときは
$source ~/.bash_profile でOK
試しに、コマンド履歴を便利に取り出す関数を導入して見ます(関数に関してはhttps://qiita.com/catfist/items/82ed3df7a0b524aeab69
の記事をコピペです)
.bash_profileの読み込み
58 07:18:42 ~/Lab_tool $ vim ~/.bash_profile
59 07:20:03 ~/Lab_tool $ chis
-bash: chis: command not found
60 07:20:05 ~/Lab_tool $ source ~/.bash_profile
61 07:23:13 ~/Lab_tool $ chis
source ~/.bash_profile
となり、source ~/.bash_profile をする前は使えなかったchisが使えるようになり、直前のコマンドが呼び出せました
source ~/.bash_profile