dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ae68c9ad7f3f8384977157b047944776c597b20d
parent 0f38312d1df0de7fa9c8394bfd1161f30534abd2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 15 Apr 2020 10:23:28 +0200

Open sacc via torsocks if an onion address

Diffstat:
M.local/bin/plumb | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -183,7 +183,11 @@ handle_target() { port="$(printf '%s' "$t" | awk -F'\t' '{print $4}')" t="${host}:${port}/${type}${path}" fi - termopen sacc "$t" + if regeximatch "\.onion"; then + termopen torsocks sacc "$t" + else + termopen sacc "$t" + fi elif regexmatch "$t" '\.[0-9]$'; then if [ -z "$TERM" ]; then