LoginSignup
1
3

More than 3 years have passed since last update.

aliasの登録方法(mac)

Posted at

bash の場合は、 ~/.bash_profile に記述。
zsh の場合は、 ~/.zshrc に記述。

$ vim ~/.zshrcの場合
以下のような感じで記述を追記。

alias gs="git status”
alias gd="git diff”
alias gc="git checkout”
alias gb="git branch”
alias gl="git log”
alias rs=“rails s”
alias rc=“rails c”

で、記述したら
$ source ~/.bash_profile
または
$ source ~/.zshrc
で使えるようになる。

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