dot

packages and services management
Log | Files | Refs | README

commit d65cf21e9632963a83008aa51edf1dba8fbd49e0
parent 86949b2d735ea7f924044dbac5f589577860be41
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 17 Mar 2018 03:52:58 +0100

temporarily change the nas address

Diffstat:
Abin/l | 3+++
Mbin/ssh-paste | 8++++----
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/bin/l b/bin/l @@ -0,0 +1,3 @@ +#!/bin/sh + +ls "$@" | column diff --git a/bin/ssh-paste b/bin/ssh-paste @@ -1,8 +1,8 @@ #!/bin/sh -cat "$@" | ssh josuah@josuah.net ' +cat "$@" | ssh josuah@nas.josuah.net ' set -e - cd srv/p && tmp=$(mktemp XXXXX) + tmp=$(mktemp srv/p/XXXXXX) cat > "$tmp" - printf %s "$tmp" -' | sed 's|.*|gopher://josuah.net/0/p/&|' + printf %s "${tmp#srv/}" +' | sed 's|.*|gopher://nas.josuah.net/0/&|'