1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Textでphp.iniを開くコマンドを作ってみた

Posted at

久しぶりに使うとphp.iniの場所をよく探しています、PHPで開発しているときはphp.iniをよく開きます。すごくたいしたことではないけど「php.iniを開くコマンド」を作ってみました。

  • 環境
    • Sublime Text Version 3.2.2
    • PHP 7.3.7
    • Windows 10
    • bash GNU bash, version 4.4.19

Sublime Textを開くsublコマンドを作る

bash_profileをSublimeText3で開く方法 - Qiita

php.iniの場所を確認する

$ php --ini
...省略...
Loaded Configuration File:         C:\app\php-7.3.7-Win32-VC15-x86\php.ini
...省略...

.bash_profileにエイリアスでSublime Textでphp.iniを開くphpiniコマンドを作る

# .bash_profileを開く
$ subl ~/.bash_profile

# 以下の1行を追記(php.iniのパスは確認したものを使う)して保存する
alias phpini='subl /c/app/php-7.3.7-Win32-VC15-x86/php.ini'

# 反映する
$ source ~/.bash_profile

phpiniコマンドでphp.iniが開くようになる

$ phpini
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?