Mac的Alfred软件主要的功能是
本地搜索及应用快速启动
唤醒后,直接搜索你要的软件即可
Alfred 默认用的是 Mac 自带的终端,如如果使用的 iTerm 可以根据下图设置:
on alfred_script(q)
tell application "iTerm"
set _length to count window
if _length = 0 then
create window with default profile
end if
set aa to (get miniaturized of current window)
if aa then
set miniaturized of current window to false
end if
set bb to (get visible of current window)
if bb is false then
set visible of current window to true
end if
set cc to frontmost
if cc is false then
activate
end if
(*if _length = 0 then*)
set theResult to current tab of current window
(*else
set theResult to (create tab with default profile) of current window
end if*)
write session of theResult text q
end tell
end alfred_script
这样 Alfred 在执行命令是就会调用 iTerm。
生成变量名,支持大小驼峰、常量、下划线,开发者必备的工作流
下载地址:https://github.com/xudaolong/CodeVar
快速查询本地ip和公网出口ip,再也不用到ipip.net上去查询了
下载地址:https://github.com/zenorocha/alfred-workflows/raw/master/ip-address/ip-address.alfredworkflow
我们公司网络比较奇葩。内外网正常情况是不能同时上的,后面解决方案是加上netmask
sudo route -n add -net 192.168.0.0 -netmask 255.255.0.0 10.8.0.1
我还不能设置为全局的,那样我在家就不能上网了
所以我每天的流程
-
打开笔记
-
复制命令
-
打开终端
-
黏贴命令
实在是麻烦
填写 Workflow 的名称,也可以将图片拖到右侧框内,即可当作图标:
双击左侧的模块设置触发关键词:















