Mac command-line Z Shell|Mac命令列操作

#shell
#Mac
Config file: (hidden) ~/.zshrc

Use nano ~/.zshrc to edit it. Add this line to create a simple alias command:
alias ic="cd \"/Users/ekliao/Library/Mobile Documents/iCloud~md~obsidian/Documents/\""

Then, re-start shell, and type

ic

will go directly to the iCloud Obsidian directory.


Aliases


More ...