diff --git a/CONFIG-Template.md b/CONFIG-Template.md index dbdc191..aa1f097 100644 --- a/CONFIG-Template.md +++ b/CONFIG-Template.md @@ -16,6 +16,20 @@ out that are not applicable to a wide range of people. Place advanced use-cases in the appropriate sections of the wiki, like the [Configuration Guide](https://github.com/rakshasa/rtorrent/wiki/Config-Guide). + +## Using the Template + +Use these commands to get a copy of the template to your disk (note that this **overwrites** an existing `~/.rtorrent.rc` you might have), and create the root directory for your instance: + +```sh +curl -Ls "https://raw.githubusercontent.com/wiki/rakshasa/rtorrent/CONFIG-Template.md" \ + | sed -ne "/^######/,/^### END/p" \ + | sed -re "s:/home/USERNAME:$HOME:" >~/.rtorrent.rc +mkdir -p ~/rtorrent/ +``` + +Then (re-)start rTorrent. + ## The Template Also see [Load ‘Drop-In’ Config Fragments](http://rtorrent-docs.readthedocs.io/en/latest/use-cases.html#drop-in-config) @@ -33,7 +47,7 @@ from files in a ``config.d`` directory. ## Instance layout (base paths) -method.insert = cfg.basedir, private|const|string, (cat,"~/rtorrent/") +method.insert = cfg.basedir, private|const|string, (cat,"/home/USERNAME/rtorrent/") method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/") method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/") method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log") @@ -143,4 +157,6 @@ print = (cat, "Logging to ", (cfg.logfile)) log.open_file = "log", (cfg.logfile) log.add_output = "info", "log" #log.add_output = "tracker_debug", "log" + +### END of rtorrent.rc ### ``` \ No newline at end of file