欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

给 macOS 添加 ll 命令

程序员文章站 2022-06-30 10:34:18
...

给 macOS zsh 添加 ll 命令

echo '
#!/bin/zsh
ls -ahlF
' > /usr/local/bin/ll
chmod +x /usr/local/bin/ll
 ~ % ll
total 40
drwxr-xr-x+ 15 sa    staff   480B  7  9 21:48 ./
drwxr-xr-x   5 root  admin   160B  1  1  2020 ../
-r--------   1 sa    staff     9B  5 28 02:55 .CFUserTextEncoding
[email protected]  1 sa    staff    10K  6 30 19:47 .DS_Store
drwx------   2 sa    staff    64B  7  9 21:48 .Trash/
-rw-------   1 sa    staff   1.4K  6 30 20:50 .zsh_history
drwx------   7 sa    staff   224B  7  9 21:48 .zsh_sessions/
drwx------+  8 sa    staff   256B  7  9 22:59 Desktop/
drwx------+  3 sa    staff    96B  5 28 02:55 Documents/
drwx------+  3 sa    staff    96B  5 28 02:55 Downloads/
[email protected] 60 sa    staff   1.9K  7  3 06:06 Library/
drwx------+  4 sa    staff   128B  6 30 06:11 Movies/
drwx------+  3 sa    staff    96B  5 28 02:55 Music/
drwx------+  4 sa    staff   128B  6 30 06:09 Pictures/
drwxr-xr-x+  4 sa    staff   128B  5 28 02:55 Public/
相关标签: Apple macos