“Terminal 打开文件方式"

1
open -a application ~/file

也可编辑vim ~/.zshrc关联软件:

1
2
3
4
5
6
7

alias ty='open -a typora'
alias -s md='open -a typora'
alias -s markdown='open -a typora'

alias showt='defaults write com.apple.finder AppleShowAllFiles TRUE'
alias showf='defaults write com.apple.finder AppleShowAllFiles FALSE'

即刻实现输入文件名打开文件:

1
~/Readme.md