Comments (18)
from stig.
Sounds great, even better than what official transmission-remote
offers :)
from stig.
@doronbehar, I currently don't see the real benefit of reading $TR_AUTH. Why
don't put set srv.url user:password@host:port
in your rc file?
from stig.
Well first of all, I think that having a password in plain text in a configuration file is a bad habit.
The way I set $TR_AUTH
in my shell configuration files for transmission-remote
is using pass
just like this. I think it's much better than storing the password in the configuration file.
Another great solution would be to have something like srv.password_eval = pass transmission
useful for people who use password managers like pass
or gnome-keyring.
from stig.
from stig.
Haha, I liked that :)
Reading the environmental variable is a great start but as for having an option like password_eval
just like in this programs:
msmtp
: https://wiki.archlinux.org/index.php/msmtp#GnuPGmutt
: https://unix.stackexchange.com/a/20572vdirsyncer
: http://vdirsyncer.pimutils.org/en/stable/keyring.html#commandtoxic
(tox client): JFreegman/toxic#434
from stig.
from stig.
What you said Yuck about is exactly what I'm doing in the .zsh_credentials
file in my dotfiles repository.
from stig.
from stig.
Oh now I understand, you were thinking of something similar to what they do in muttrc
(as explained here: https://unix.stackexchange.com/a/20572).
Maybe you should enable splitting the srv.url
into srv.host
, srv.port
, srv.user
and optionally srv.password
which could be interpreted with something similar to fetch
. Then you won't have to worry to much about sub-shells and quotes, you could just make the fetch
command by default interpreting a shell command. That's only one sub-shell if I'm correct.
from stig.
from stig.
You are funny :),
I don't think It has to brake backwards compatibility, it might be possible to specify in the manual or something that srv.url
is overriding srv.host
, srv.port
, srv.user
and srv.password
or the other way around but than you will still have to solve #24 elegantly. I guess it will be much easier for you to remove the srv.url
and use only the above variables instead exactly as you said.
I'll agree with either of those choices :)
from stig.
from stig.
Thanks for you reaching out your users 👍, Hope to see it in the next version.
Cheers!
from stig.
I've extended the 'set' command so that you can now append ':eval' to the name
of a setting to indicate that the value is a command:
set connect.password:eval pass transmission
from stig.
Works great! Thanks!
from stig.
Sorry for necrobumping but I wanted to share that this makes it possible to use env vars in the config 👍
set tui.theme:eval echo $XDG_CONFIG_HOME/stig/themes/stig_darker_theme.txt
from stig.
how do i set username?
from stig.
Related Issues (20)
- [Feature request] Remote file systems (tab completion when moving torrents, fopen) HOT 2
- How can I force stig to show column headers and fancy formatting? HOT 1
- FAILED tests/completion_test/classes_test.py::TestCandidates::test_candidates_are_sorted_case_insensitively HOT 9
- Add sleep/timer/delay option for commands HOT 3
- Crash when deleting multiple torrents with data HOT 3
- How to reset torrent settings so that it uses global settings? HOT 7
- Stig not deleting torrent data when using rm -d HOT 5
- Filter torrents by the Private flag in CLI HOT 2
- Whatch-dir or the ability to use magnet links ? HOT 1
- urwid modifications license HOT 4
- Soulseek Support HOT 1
- Display torrents added recently by relative time measurement HOT 4
- unit test error when trying to package with pypi-install HOT 2
- Can we have regex, please? HOT 3
- Adding torrent files en masse? HOT 5
- Python 3.11 HOT 13
- Screen redrawing issues HOT 1
- [Question] Sluggish opening/closing of torrent details (:tab info) HOT 2
- Unable to add new torrents, timeout after 10s HOT 8
- AttributeError: module 'urwid' has no attribute 'decoration' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stig.