From 02e7bfe61bdda9a96387f64c63c83ad5d325e9e8 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Fri, 7 Jan 2022 20:52:11 +0100 Subject: [PATCH] now checking if `mantpath` is present before using it --- .bashrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.bashrc b/.bashrc index fa70daf..e295b0d 100644 --- a/.bashrc +++ b/.bashrc @@ -229,6 +229,20 @@ digfull() { dig +nocmd $1 any +multiline +noall +answer } +sshttp() { + if [ -z "$3" ] + then + port=80 + else + port=$3 + fi + + ssh -L 9000:$1:$port $2 +} + +sshttps() { + sshttp $1 $2 443 +} # ENVIRONMENT NPM_PACKAGES="${HOME}/.npm-packages"