環境構築ってわけわからんし、めんどくさい! そう思ってプログラミングをやめた人は結構いるのではないでしょうか。勉強し始めて半年ぐらいたつ僕ですが、いまだに環境構築は苦手です。ですが、Laravel環境構築はなんとかできたので、その時の手順を出来るだけわかりやすく書いていこうと思います。長くなりそうなので下準備編と開発編で分けて解説していきます。基本的にはbashでやってますが、多分zshでも大丈夫です。その時は$を%に読み替えてください。 手順 1.ターミナルを開く 2.homebrewのインストール 3.phpのインストール 4.composerのインストール 5.PATHを通す 6.Valetのインストール 1.ターミナルを開く それぐらいできるわ!って人も多いと思いますが、 プロゲートとかだけやってるとマジでちょっと戸惑います。 どうやって開くかというと、まずファインダーを開きます。
今回は、bashのユーザーディレクトリ側の初期設定ファイルについて解説する。結論からいうと、WSLで最初に起動するbashは、「ログイン・シェル」ではなく、「インタラクティブ・シェル」であり、前回説明した「/etc/bash.bashrc」と「~/.bashrc」が動作したのちにプロンプト表示(コマンド入力待ち)となる。このため、個人の基本的な設定は、「~/.bashrc」に記述すればよい。 やはり前回説明した、/etc/profileは一般的なLinuxの場合システムコンソールからの起動では実行されるが、WSLの場合、/etc/profileは実行されず、bashは「インタラクティブ・シェル」として起動される。このため、WSLでは/etc/profileに何か記述しても実行されることがない。この部分、Linux一般としては正しくとも、WSLの記述としては、前回の記述は誤解させてしまう内容
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く