我希望能够通过命令行用bash脚本更改一些Firefox设置,有人可以指点我正确的方向吗?谢谢!
#!/bin/bash cd ~/.mozilla/firefox/ sed -i 's/user_pref("'$1'",.*);/user_pref("'$1'",'$2');/' user.js grep -q $1 user.js || echo "user_pref(\"$1\",$2);" >> user.js
如果第一行上的路径错误,则需要编辑配置文件目录的mozilla路径 .
Using command line options for Mozilla Firefox
1 回答
这是您的请求的示例脚本:
如果第一行上的路径错误,则需要编辑配置文件目录的mozilla路径 .
在以下网址中找到更多信息:
Using command line options for Mozilla Firefox