dot

packages and services management
Log | Files | Refs | README

commit 11f33be21bf6e3139f4eba3bf54e4316befd4bd2
parent 37edbd355792492d4c59b714f76dd34455fc4675
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 11 Nov 2017 22:15:15 +0100

added tor

Diffstat:
Mbin/io | 14+++++++-------
Mbin/xdg-open | 4++++
Aio/telnet | 2++
Apackage/tor/tar | 1+
4 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/bin/io b/bin/io @@ -6,15 +6,15 @@ export LC_COLLATE=C touch "$ABDUCO_SOCKET_DIR/abduco/names" "$HOME/var/cache/io" grep -F "$ABDUCO_SOCKET_DIR/abduco/names" -e "$( - abduco | awk -F '\t' 'NR > 1 { print $3 " " }' -)" | sort -u -o "$ABDUCO_SOCKET_DIR/abduco/names" + abduco | sed 1d | cut -d ' ' -f 3- +)" | sort -uo "$ABDUCO_SOCKET_DIR/abduco/names" -[ $# = 0 ] && IFS=' ' set -- $({ - cut -d ' ' -f 3- "$ABDUCO_SOCKET_DIR/abduco/names" - cat "$HOME/var/cache/io" "$HOME/etc/io"/* -} | iomenu -p io -#) +[ $# = 0 ] && IFS=' ' set -- $( + cut -d ' ' -f 3- "$ABDUCO_SOCKET_DIR/abduco/names" | + cat - "$HOME/var/cache/io" "$HOME/etc/io"/* | iomenu -p io -# +) -for path in "$@"; do true; done +for path in "$@"; do continue; done [ -e "$path" ] && path=$(cd "$(dirname "$path")" && pwd)/$(basename "$path") hash=$(printf %s "$path" | cksum | cut -d ' ' -f 1) diff --git a/bin/xdg-open b/bin/xdg-open @@ -42,6 +42,10 @@ git://*) cd "$HOME/src" || exit 1 exec git clone "$1" ;; +telnet://*) + address=${1#telnet://} + exec telnet "${address%:*}" "${address##*:}" + ;; mailto:*) exec mcom "${1#mailto:}" ;; diff --git a/io/telnet b/io/telnet @@ -0,0 +1,2 @@ +#xdg-open +telnet://entropy.bbses.info:23999 diff --git a/package/tor/tar b/package/tor/tar @@ -0,0 +1 @@ +http://www.torproject.org/dist/tor-0.3.1.8.tar.gz