GitHub iconTwitter icon

💻 macos

tips about macos

Find and download icons here https://macosicons.com

  1. Find the app to update on Finder
  2. Select it and "File > Get Info" or "⌘-I" and drag and drop the downloaded .icns file to the new window.

https://it.umn.edu/services-technologies/how-tos/find-your-computer-name#mac

  • 唤起emoji输入 `Command Control space`
  • 显示隐藏文件夹 `Command Shift .`
  • 关闭键盘背光 `Fn+F5`

https://zhuanlan.zhihu.com/p/111550987

  1. `export EDITOR=vim`
  2. `crontab -e`

format

* * * * * sh path/xx.sh

use cmd

因为`crontab``root`方式运行,使用命令行工具应该使用绝对路径!

/usr/bin/curl <path>

refs

  1. cron.guru
  2. why-crontab-empty
  3. edit-without-interactive-editor

`系统偏好设置->键盘->文本`关闭触控栏的输入法联想

basic

osascript -e 'display notification "Notification text" with title "Title"'

variable

osascript -e 'display notification "今天又是元气满满的一天" with title "早上好, '"$USER"'"'

关键 '"$USER"'

  1. 鼠标移动到icon上
  2. 按着`Command`,然后鼠标长按点击拖动
  • 放大 `Option =`
  • 缩小 `Option -`