Mac

设置快捷命令启动 APP

# 修改配置,zsh 为例(bash 修改 ~/.bash_profile)
vim ~/.zshrc

# 添加需要快捷打开的应用路径,以 typora 和 sublim 为例
alias typ='open -a /Applications/Typora.app'
alias subl='open -a /Applications/Sublime\ Text.app'

# 生效
source ~/.zshrc

开启合盖不睡眠

禁用Lid-Sleep的命令(保持系统唤醒)

$ sudo pmset -b sleep 0; sudo pmset -b disablesleep 1

激活Lid-Sleep的命令(让系统像正常一样再次进入睡眠状态)

$ sudo pmset -b sleep 5; sudo pmset -b disablesleep 0

results matching ""

    No results matching ""