5
3

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 3 years have passed since last update.

【Mac】aliasの設定方法(再起動しても消えない)

Posted at

#概要

Macのターミナルにて、aliasの設定方法のメモ

#環境

・端末:MacOS Catalina ver.10.15.5
・ターミナル:iTerm2

#方法

  1. ターミナルを開き、~/.zshrcファイルを編集する。
$ vim ~/.zshrc
  1. 設定したいaliasのコマンドを設定する
~/.zshrc
alias ll='ls -l'
alias lla='ls -la'
alias em='emacs'
  1. ターミナルを再起動するか以下のコマンドを実行
$ source ~/.zshrc

これで、電源を入れ直してもaliasは消えず設定される

#参考
zshにaliasで設定したものが反映されない

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?