Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Source another rtorrent.rc file #387

Closed
parnmatt opened this issue Feb 1, 2016 · 3 comments
Closed

Feature Request: Source another rtorrent.rc file #387

parnmatt opened this issue Feb 1, 2016 · 3 comments

Comments

@parnmatt
Copy link

parnmatt commented Feb 1, 2016

I would like the ability to have my general settings in $HOME/.rtorrent.rc, but also have the ability to source another rc file.

For example, having source ~/.rtorrent.rc.current_network within the usual file, which contains download and upload speeds, and max peers, etc., for the current network I am connected to; that I manually provide.

@chros73
Copy link
Contributor

chros73 commented Feb 2, 2016

This feature is already implemented by using import or try_import, you can use it like import = somefile .
You can also take a look how pyroscope did it (I've modded a little bit) in rtorrent-ps config: https://github.com/chros73/rtorrent-ps/blob/master/ubuntu-14.04/home/chros73/.rtorrent.rc#L4

@ghudiczius
Copy link

this can also be done from the command line, with
rtorrent -o import=/some/path/rtorrent.rc -o import=/some/other/path/.rtorrent.conf
it can also be combined with the -n switch which tells rTorrent to ignore the default configuration file at ~/.rtorrent.rc
rtorrent -n -o import=/some/path/rtorrent.rc -o import=/some/other/path/.rtorrent.conf

@parnmatt
Copy link
Author

parnmatt commented Feb 4, 2016

Thanks guys. I've implemented this now.

@parnmatt parnmatt closed this as completed Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants