init: Alfred preferences

This commit is contained in:
2026-03-26 09:22:38 +08:00
commit 3cad72b72c
13215 changed files with 108280 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "# Execute a command as root (or sudo)\ndo_with_root() {\n # already root? \"Just do it\" (tm).\n if [[ $(whoami) = 'root' ]]; then\n \"$@\"\n elif [[ -x \/bin\/sudo || -x \/usr\/bin\/sudo ]]; then\n echo \"sudo $*\"\n sudo \"$*\"\n else\n exit 1\n fi\n}",
"uid" : "B4650A24-F9AF-4AD4-B0D0-810F7DA0B9C2",
"name" : "do_with_root",
"keyword" : ""
}
}