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 1 year has passed since last update.

背景

$ ls -l

というコマンドを
と打てば ll コマンドと同じ挙動にはなりますが、面倒過ぎた。
一日何回打つんだ…

設定方法

以下の方法でalias設定すればllコマンドがmacOSでも使えます

$ vim ~/.zshrc

# 以下を入力
alias ll='ls -l'

# 以下で設定反映
$ source ~/.zshrc

確認

$ ll

drwx------+ 14 {ユーザー名}  {グループ名}   448  6 14 11:50 Desktop
drwx------+  3 {ユーザー名}  {グループ名}    96  6  6 15:29 Documents
drwx------+ 28 {ユーザー名}  {グループ名}   896  6 14 11:17 Downloads
drwxr-xr-x  14 {ユーザー名}  {グループ名}   448  6 13 18:57 workspace
…

上記のようになれば設定完了です。

終わり

めっちゃ楽!

ちなみに私は

alias ll='ls -la'

で設定しちゃってます。aオプションが好きです。

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?