macの~/.bashrcに以下のcommand_not_found_handleを追加したのですが、うまくいかないです。
** ~/.bashrc**
function command_not_found_handle(){ echo "$1なんてコマンドないよ。" }
~/.bash_profileの設定は以下の通りです。
** ~/.bash_profile**
export PATH=/usr/local:$PATH export PATH=/usr/local/Cellar/git/2.15.0/bin:$PATH export PATH=$HOME/.nodebrew/current/bin:$PATH export PATH=$HOME/.nodebrew/node/v9.0.0/bin:$PATH export LANG=ja_JP.UTF-8 export LESSCHARSET=utf-8 if [ -f ~/.bashrc ] ; then . ~/.bashrc fi
~/.bashrcの編集を行ったあと、
$ source ~/.bash_profile
で設定を読み込ませました。
エイリアスの設定はできます。
環境は macOS Sierra バージョン10.12.6
ターミナルはiTerm2です。
わかる方がいましたら、ご教授ください。
回答2件
あなたの回答
tips
プレビュー