dot

packages and services management
Log | Files | Refs | README

commit 68d5d159e75b952a779b4a5caf426c36e135856c
parent ef556a99cc025ea9419365c20d6744e2e24ad015
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue,  6 Mar 2018 14:06:11 +0100

try to fix bashrc issues

Diffstat:
A.bash_profile | 2++
M.profile | 2++
Arunit/ssh-fwd/nas.josuah.net/log/run | 2++
Arunit/ssh-fwd/nas.josuah.net/run | 3+++
Arunit/ssh-fwd/run | 9+++++++++
5 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/.bash_profile b/.bash_profile @@ -0,0 +1,2 @@ +[ "$EMAIL" ] || . "$HOME/.profile" +. "$HOME/.bashrc" diff --git a/.profile b/.profile @@ -36,3 +36,5 @@ export MANPATH="$PACKROOT/share/man:$MANPATH:$PLAN9/man" export C_INCLUDE_PATH="$PACKROOT/include" export LIBRARY_PATH="$PACKROOT/lib:/usr/local/lib/inotify" export LD_LIBRARY_PATH="$PACKROOT/lib:/usr/local/lib/inotify" + +export PS1='\n\h\$ ' diff --git a/runit/ssh-fwd/nas.josuah.net/log/run b/runit/ssh-fwd/nas.josuah.net/log/run @@ -0,0 +1 @@ +../../../svlogd/run+ \ No newline at end of file diff --git a/runit/ssh-fwd/nas.josuah.net/run b/runit/ssh-fwd/nas.josuah.net/run @@ -0,0 +1,3 @@ +#!/bin/sh -e + +../run josuah "$(basename "$PWD")" 2222 22 diff --git a/runit/ssh-fwd/run b/runit/ssh-fwd/run @@ -0,0 +1,9 @@ +#!/bin/sh -e + +user="${1?}" +host="${2?}" +port_local="${3?}" +port_remote="${4?}" + +exec 2>&1 +exec ssh -L "$port_local:$host:$port_remote" -N "$user@$host"