LoginSignup
2
1

More than 5 years have passed since last update.

【bash】エイリアスを追加

Posted at

時々忘れそうになるのでメモ。

$ vi .bashrc

でbashrcを開く。そして

alias エイリアス名='コマンド'

でエイリアスを追加。
コマンドが続く場合はこの下に記述していきます。

保存したら、
$ vi .bash_profile

で bash_profileを開いて
source ~/.bashrc
を追加。そして保存。

最後に
$ source .bash_profile
を実行してOK。

2
1
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
2
1